diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 194d901c7f1c..39ab62fc06e0 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -4878,6 +4878,10 @@ static struct ieee80211_channel *wlan_hdd_get_wiphy_channel( struct ieee80211_channel *wiphy_channel = NULL; for (band_num = 0; band_num < HDD_NUM_NL80211_BANDS; band_num++) { + if (!wiphy->bands[band_num]) { + hdd_debug("Band %d not part of wiphy", band_num); + continue; + } for (channel_num = 0; channel_num < wiphy->bands[band_num]->n_channels; channel_num++) {