aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/airo.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/airo.c')
-rw-r--r--drivers/net/wireless/airo.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
index edf4b57c4aaa..64747d457bb3 100644
--- a/drivers/net/wireless/airo.c
+++ b/drivers/net/wireless/airo.c
@@ -36,7 +36,7 @@
36#include <linux/bitops.h> 36#include <linux/bitops.h>
37#include <linux/scatterlist.h> 37#include <linux/scatterlist.h>
38#include <linux/crypto.h> 38#include <linux/crypto.h>
39#include <asm/io.h> 39#include <linux/io.h>
40#include <asm/unaligned.h> 40#include <asm/unaligned.h>
41 41
42#include <linux/netdevice.h> 42#include <linux/netdevice.h>
@@ -45,11 +45,11 @@
45#include <linux/if_arp.h> 45#include <linux/if_arp.h>
46#include <linux/ioport.h> 46#include <linux/ioport.h>
47#include <linux/pci.h> 47#include <linux/pci.h>
48#include <asm/uaccess.h> 48#include <linux/uaccess.h>
49#include <linux/kthread.h> 49#include <linux/kthread.h>
50#include <linux/freezer.h> 50#include <linux/freezer.h>
51 51
52#include <linux/ieee80211.h> 52#include <net/cfg80211.h>
53#include <net/iw_handler.h> 53#include <net/iw_handler.h>
54 54
55#include "airo.h" 55#include "airo.h"
@@ -5797,7 +5797,7 @@ static int airo_set_freq(struct net_device *dev,
5797 5797
5798 /* Hack to fall through... */ 5798 /* Hack to fall through... */
5799 fwrq->e = 0; 5799 fwrq->e = 0;
5800 fwrq->m = ieee80211_freq_to_dsss_chan(f); 5800 fwrq->m = ieee80211_frequency_to_channel(f);
5801 } 5801 }
5802 /* Setting by channel number */ 5802 /* Setting by channel number */
5803 if((fwrq->m > 1000) || (fwrq->e > 0)) 5803 if((fwrq->m > 1000) || (fwrq->e > 0))
@@ -5841,7 +5841,8 @@ static int airo_get_freq(struct net_device *dev,
5841 5841
5842 ch = le16_to_cpu(status_rid.channel); 5842 ch = le16_to_cpu(status_rid.channel);
5843 if((ch > 0) && (ch < 15)) { 5843 if((ch > 0) && (ch < 15)) {
5844 fwrq->m = ieee80211_dsss_chan_to_freq(ch) * 100000; 5844 fwrq->m = 100000 *
5845 ieee80211_channel_to_frequency(ch, IEEE80211_BAND_2GHZ);
5845 fwrq->e = 1; 5846 fwrq->e = 1;
5846 } else { 5847 } else {
5847 fwrq->m = ch; 5848 fwrq->m = ch;
@@ -6898,7 +6899,8 @@ static int airo_get_range(struct net_device *dev,
6898 k = 0; 6899 k = 0;
6899 for(i = 0; i < 14; i++) { 6900 for(i = 0; i < 14; i++) {
6900 range->freq[k].i = i + 1; /* List index */ 6901 range->freq[k].i = i + 1; /* List index */
6901 range->freq[k].m = ieee80211_dsss_chan_to_freq(i + 1) * 100000; 6902 range->freq[k].m = 100000 *
6903 ieee80211_channel_to_frequency(i + 1, IEEE80211_BAND_2GHZ);
6902 range->freq[k++].e = 1; /* Values in MHz -> * 10^5 * 10 */ 6904 range->freq[k++].e = 1; /* Values in MHz -> * 10^5 * 10 */
6903 } 6905 }
6904 range->num_frequency = k; 6906 range->num_frequency = k;
@@ -7297,7 +7299,8 @@ static inline char *airo_translate_scan(struct net_device *dev,
7297 /* Add frequency */ 7299 /* Add frequency */
7298 iwe.cmd = SIOCGIWFREQ; 7300 iwe.cmd = SIOCGIWFREQ;
7299 iwe.u.freq.m = le16_to_cpu(bss->dsChannel); 7301 iwe.u.freq.m = le16_to_cpu(bss->dsChannel);
7300 iwe.u.freq.m = ieee80211_dsss_chan_to_freq(iwe.u.freq.m) * 100000; 7302 iwe.u.freq.m = 100000 *
7303 ieee80211_channel_to_frequency(iwe.u.freq.m, IEEE80211_BAND_2GHZ);
7301 iwe.u.freq.e = 1; 7304 iwe.u.freq.e = 1;
7302 current_ev = iwe_stream_add_event(info, current_ev, end_buf, 7305 current_ev = iwe_stream_add_event(info, current_ev, end_buf,
7303 &iwe, IW_EV_FREQ_LEN); 7306 &iwe, IW_EV_FREQ_LEN);