diff options
Diffstat (limited to 'net/wireless/scan.c')
-rw-r--r-- | net/wireless/scan.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index 50ea8e3fcbeb..abdf651a70d9 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c | |||
@@ -531,7 +531,7 @@ static int cmp_bss(struct cfg80211_bss *a, | |||
531 | } | 531 | } |
532 | 532 | ||
533 | static bool cfg80211_bss_type_match(u16 capability, | 533 | static bool cfg80211_bss_type_match(u16 capability, |
534 | enum ieee80211_band band, | 534 | enum nl80211_band band, |
535 | enum ieee80211_bss_type bss_type) | 535 | enum ieee80211_bss_type bss_type) |
536 | { | 536 | { |
537 | bool ret = true; | 537 | bool ret = true; |
@@ -540,7 +540,7 @@ static bool cfg80211_bss_type_match(u16 capability, | |||
540 | if (bss_type == IEEE80211_BSS_TYPE_ANY) | 540 | if (bss_type == IEEE80211_BSS_TYPE_ANY) |
541 | return ret; | 541 | return ret; |
542 | 542 | ||
543 | if (band == IEEE80211_BAND_60GHZ) { | 543 | if (band == NL80211_BAND_60GHZ) { |
544 | mask = WLAN_CAPABILITY_DMG_TYPE_MASK; | 544 | mask = WLAN_CAPABILITY_DMG_TYPE_MASK; |
545 | switch (bss_type) { | 545 | switch (bss_type) { |
546 | case IEEE80211_BSS_TYPE_ESS: | 546 | case IEEE80211_BSS_TYPE_ESS: |
@@ -1006,7 +1006,7 @@ cfg80211_inform_bss_data(struct wiphy *wiphy, | |||
1006 | if (!res) | 1006 | if (!res) |
1007 | return NULL; | 1007 | return NULL; |
1008 | 1008 | ||
1009 | if (channel->band == IEEE80211_BAND_60GHZ) { | 1009 | if (channel->band == NL80211_BAND_60GHZ) { |
1010 | bss_type = res->pub.capability & WLAN_CAPABILITY_DMG_TYPE_MASK; | 1010 | bss_type = res->pub.capability & WLAN_CAPABILITY_DMG_TYPE_MASK; |
1011 | if (bss_type == WLAN_CAPABILITY_DMG_TYPE_AP || | 1011 | if (bss_type == WLAN_CAPABILITY_DMG_TYPE_AP || |
1012 | bss_type == WLAN_CAPABILITY_DMG_TYPE_PBSS) | 1012 | bss_type == WLAN_CAPABILITY_DMG_TYPE_PBSS) |
@@ -1089,7 +1089,7 @@ cfg80211_inform_bss_frame_data(struct wiphy *wiphy, | |||
1089 | if (!res) | 1089 | if (!res) |
1090 | return NULL; | 1090 | return NULL; |
1091 | 1091 | ||
1092 | if (channel->band == IEEE80211_BAND_60GHZ) { | 1092 | if (channel->band == NL80211_BAND_60GHZ) { |
1093 | bss_type = res->pub.capability & WLAN_CAPABILITY_DMG_TYPE_MASK; | 1093 | bss_type = res->pub.capability & WLAN_CAPABILITY_DMG_TYPE_MASK; |
1094 | if (bss_type == WLAN_CAPABILITY_DMG_TYPE_AP || | 1094 | if (bss_type == WLAN_CAPABILITY_DMG_TYPE_AP || |
1095 | bss_type == WLAN_CAPABILITY_DMG_TYPE_PBSS) | 1095 | bss_type == WLAN_CAPABILITY_DMG_TYPE_PBSS) |
@@ -1185,7 +1185,7 @@ int cfg80211_wext_siwscan(struct net_device *dev, | |||
1185 | struct iw_scan_req *wreq = NULL; | 1185 | struct iw_scan_req *wreq = NULL; |
1186 | struct cfg80211_scan_request *creq = NULL; | 1186 | struct cfg80211_scan_request *creq = NULL; |
1187 | int i, err, n_channels = 0; | 1187 | int i, err, n_channels = 0; |
1188 | enum ieee80211_band band; | 1188 | enum nl80211_band band; |
1189 | 1189 | ||
1190 | if (!netif_running(dev)) | 1190 | if (!netif_running(dev)) |
1191 | return -ENETDOWN; | 1191 | return -ENETDOWN; |
@@ -1229,7 +1229,7 @@ int cfg80211_wext_siwscan(struct net_device *dev, | |||
1229 | 1229 | ||
1230 | /* translate "Scan on frequencies" request */ | 1230 | /* translate "Scan on frequencies" request */ |
1231 | i = 0; | 1231 | i = 0; |
1232 | for (band = 0; band < IEEE80211_NUM_BANDS; band++) { | 1232 | for (band = 0; band < NUM_NL80211_BANDS; band++) { |
1233 | int j; | 1233 | int j; |
1234 | 1234 | ||
1235 | if (!wiphy->bands[band]) | 1235 | if (!wiphy->bands[band]) |
@@ -1289,7 +1289,7 @@ int cfg80211_wext_siwscan(struct net_device *dev, | |||
1289 | creq->n_ssids = 0; | 1289 | creq->n_ssids = 0; |
1290 | } | 1290 | } |
1291 | 1291 | ||
1292 | for (i = 0; i < IEEE80211_NUM_BANDS; i++) | 1292 | for (i = 0; i < NUM_NL80211_BANDS; i++) |
1293 | if (wiphy->bands[i]) | 1293 | if (wiphy->bands[i]) |
1294 | creq->rates[i] = (1 << wiphy->bands[i]->n_bitrates) - 1; | 1294 | creq->rates[i] = (1 << wiphy->bands[i]->n_bitrates) - 1; |
1295 | 1295 | ||