mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
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:
commit
ac0a583c06
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue