aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intersil/orinoco/scan.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-04-13 17:58:51 -0400
committerDavid S. Miller <davem@davemloft.net>2016-04-13 17:58:51 -0400
commit71bbe25d01fa4f35551ff7bffc3e03ddd3e960cd (patch)
treed32c77e506192ef0ba62a10e92aac410eccaa575 /drivers/net/wireless/intersil/orinoco/scan.c
parent7d45a04cbc2683f9552572850f1c711d9b96dd26 (diff)
parent57fbcce37be7c1d2622b56587c10ade00e96afa3 (diff)
Merge tag 'mac80211-next-for-davem-2016-04-13' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
Johannes Berg says: ==================== To synchronize with Kalle, here's just a big change that affects all drivers - removing the duplicated enum ieee80211_band and replacing it by enum nl80211_band. On top of that, just a small documentation update. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/intersil/orinoco/scan.c')
-rw-r--r--drivers/net/wireless/intersil/orinoco/scan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/intersil/orinoco/scan.c b/drivers/net/wireless/intersil/orinoco/scan.c
index 2c66166add70..d0ceb06c72d0 100644
--- a/drivers/net/wireless/intersil/orinoco/scan.c
+++ b/drivers/net/wireless/intersil/orinoco/scan.c
@@ -111,7 +111,7 @@ static void orinoco_add_hostscan_result(struct orinoco_private *priv,
111 } 111 }
112 112
113 freq = ieee80211_channel_to_frequency( 113 freq = ieee80211_channel_to_frequency(
114 le16_to_cpu(bss->a.channel), IEEE80211_BAND_2GHZ); 114 le16_to_cpu(bss->a.channel), NL80211_BAND_2GHZ);
115 channel = ieee80211_get_channel(wiphy, freq); 115 channel = ieee80211_get_channel(wiphy, freq);
116 if (!channel) { 116 if (!channel) {
117 printk(KERN_DEBUG "Invalid channel designation %04X(%04X)", 117 printk(KERN_DEBUG "Invalid channel designation %04X(%04X)",
@@ -148,7 +148,7 @@ void orinoco_add_extscan_result(struct orinoco_private *priv,
148 ie_len = len - sizeof(*bss); 148 ie_len = len - sizeof(*bss);
149 ie = cfg80211_find_ie(WLAN_EID_DS_PARAMS, bss->data, ie_len); 149 ie = cfg80211_find_ie(WLAN_EID_DS_PARAMS, bss->data, ie_len);
150 chan = ie ? ie[2] : 0; 150 chan = ie ? ie[2] : 0;
151 freq = ieee80211_channel_to_frequency(chan, IEEE80211_BAND_2GHZ); 151 freq = ieee80211_channel_to_frequency(chan, NL80211_BAND_2GHZ);
152 channel = ieee80211_get_channel(wiphy, freq); 152 channel = ieee80211_get_channel(wiphy, freq);
153 153
154 timestamp = le64_to_cpu(bss->timestamp); 154 timestamp = le64_to_cpu(bss->timestamp);