diff --git a/core/rtw_ap.c b/core/rtw_ap.c index e52b5ad..5949ad0 100644 --- a/core/rtw_ap.c +++ b/core/rtw_ap.c @@ -4400,7 +4400,7 @@ static u8 rtw_ap_update_chbw_by_ifbmp(struct dvobj_priv *dvobj, u8 ifbmp int i; for (i = 0; i < dvobj->iface_nums; i++) { - if (!(ifbmp & BIT(i)) || !dvobj->padapters) + if (!(ifbmp & BIT(i)) || &(dvobj->padapters) == NULL) continue; iface = dvobj->padapters[i]; @@ -4420,7 +4420,7 @@ static u8 rtw_ap_update_chbw_by_ifbmp(struct dvobj_priv *dvobj, u8 ifbmp } for (i = 0; i < dvobj->iface_nums; i++) { - if (!(ifbmp & BIT(i)) || !dvobj->padapters) + if (!(ifbmp & BIT(i)) || &(dvobj->padapters) == NULL) continue; iface = dvobj->padapters[i];