Merge "qcacld-3.0: Add check for wiphy band while populating it" into wlan-cld3.driver.lnx.2.0-dev

This commit is contained in:
CNSS_WLAN Service 2017-10-12 20:02:10 -07:00 • committed by Gerrit - the friendly Code Review server
commit ac0a583c06

View file

@ -835,6 +835,9 @@ static void fill_wiphy_band_channels(struct wiphy *wiphy,
uint32_t chan_cnt;
struct ieee80211_channel *wiphy_chan;
if (wiphy->bands[band_id] == NULL)
return;
wiphy_num_chan = wiphy->bands[band_id]->n_channels;
wiphy_chan = wiphy->bands[band_id]->channels;