|
@@ -1528,7 +1528,7 @@ static int __wlan_hdd_cfg80211_vendor_scan(struct wiphy *wiphy,
|
|
|
tb[QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES], tmp)
|
|
|
n_channels++;
|
|
|
} else {
|
|
|
- for (band = 0; band < NUM_NL80211_BANDS; band++)
|
|
|
+ for (band = 0; band < HDD_NUM_NL80211_BANDS; band++)
|
|
|
if (wiphy->bands[band])
|
|
|
n_channels += wiphy->bands[band]->n_channels;
|
|
|
}
|
|
@@ -1588,7 +1588,7 @@ static int __wlan_hdd_cfg80211_vendor_scan(struct wiphy *wiphy,
|
|
|
count++;
|
|
|
}
|
|
|
} else {
|
|
|
- for (band = 0; band < NUM_NL80211_BANDS; band++) {
|
|
|
+ for (band = 0; band < HDD_NUM_NL80211_BANDS; band++) {
|
|
|
if (!wiphy->bands[band])
|
|
|
continue;
|
|
|
for (j = 0; j < wiphy->bands[band]->n_channels;
|
|
@@ -1630,7 +1630,7 @@ static int __wlan_hdd_cfg80211_vendor_scan(struct wiphy *wiphy,
|
|
|
request->ie_len);
|
|
|
}
|
|
|
|
|
|
- for (count = 0; count < NUM_NL80211_BANDS; count++)
|
|
|
+ for (count = 0; count < HDD_NUM_NL80211_BANDS; count++)
|
|
|
if (wiphy->bands[count])
|
|
|
request->rates[count] =
|
|
|
(1 << wiphy->bands[count]->n_bitrates) - 1;
|
|
@@ -1640,7 +1640,7 @@ static int __wlan_hdd_cfg80211_vendor_scan(struct wiphy *wiphy,
|
|
|
tb[QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES],
|
|
|
tmp) {
|
|
|
band = nla_type(attr);
|
|
|
- if (band >= NUM_NL80211_BANDS)
|
|
|
+ if (band >= HDD_NUM_NL80211_BANDS)
|
|
|
continue;
|
|
|
if (!wiphy->bands[band])
|
|
|
continue;
|