mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
qcacld-3.0: Donot access invalid wiphy band
In wlan_hdd_get_wiphy_channel(), Donot access 60 Ghz which are not part of wiphy. Change-Id: Ie8249bdcc7c4fb66744a9b16f2c194e9ab60dd1b CRs-Fixed: 2984046
This commit is contained in:
parent
2d64189997
commit
432c544f43
1 changed files with 4 additions and 0 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue