aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1251_main.c
diff options
context:
space:
mode:
authorKalle Valo <kalle.valo@nokia.com>2009-08-07 06:34:27 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-14 09:13:40 -0400
commit9780279c60c32cb5f14531aa34ae991bb714c90c (patch)
treea17dcab5b4da37c5c5d83f1a76ed3ca34101a38f /drivers/net/wireless/wl12xx/wl1251_main.c
parent7a33732fd9f2181bfe639691ead3def7a1e87c7d (diff)
wl1251: initialise default channel to zero
Because wl->channel was initialised to one, the first join command in wl1251_op_config() always failed. Signed-off-by: Kalle Valo <kalle.valo@nokia.com> Reviewed-by: Vidhya Govindan <vidhya.govindan@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1251_main.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1251_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_main.c b/drivers/net/wireless/wl12xx/wl1251_main.c
index d03169266b29..2514c94294d7 100644
--- a/drivers/net/wireless/wl12xx/wl1251_main.c
+++ b/drivers/net/wireless/wl12xx/wl1251_main.c
@@ -461,6 +461,7 @@ static void wl1251_op_stop(struct ieee80211_hw *hw)
461 wl->psm = 0; 461 wl->psm = 0;
462 wl->tx_queue_stopped = false; 462 wl->tx_queue_stopped = false;
463 wl->power_level = WL1251_DEFAULT_POWER_LEVEL; 463 wl->power_level = WL1251_DEFAULT_POWER_LEVEL;
464 wl->channel = WL1251_DEFAULT_CHANNEL;
464 465
465 wl1251_debugfs_reset(wl); 466 wl1251_debugfs_reset(wl);
466 467
@@ -1302,7 +1303,6 @@ out:
1302} 1303}
1303EXPORT_SYMBOL_GPL(wl1251_init_ieee80211); 1304EXPORT_SYMBOL_GPL(wl1251_init_ieee80211);
1304 1305
1305#define WL1251_DEFAULT_CHANNEL 1
1306struct ieee80211_hw *wl1251_alloc_hw(void) 1306struct ieee80211_hw *wl1251_alloc_hw(void)
1307{ 1307{
1308 struct ieee80211_hw *hw; 1308 struct ieee80211_hw *hw;