Commit 9780279c authored by Kalle Valo's avatar Kalle Valo Committed by John W. Linville

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: default avatarKalle Valo <kalle.valo@nokia.com>
Reviewed-by: default avatarVidhya Govindan <vidhya.govindan@nokia.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7a33732f
...@@ -398,6 +398,8 @@ void wl1251_disable_interrupts(struct wl1251 *wl); ...@@ -398,6 +398,8 @@ void wl1251_disable_interrupts(struct wl1251 *wl);
#define WL1251_DEFAULT_BEACON_INT 100 #define WL1251_DEFAULT_BEACON_INT 100
#define WL1251_DEFAULT_DTIM_PERIOD 1 #define WL1251_DEFAULT_DTIM_PERIOD 1
#define WL1251_DEFAULT_CHANNEL 0
#define CHIP_ID_1251_PG10 (0x7010101) #define CHIP_ID_1251_PG10 (0x7010101)
#define CHIP_ID_1251_PG11 (0x7020101) #define CHIP_ID_1251_PG11 (0x7020101)
#define CHIP_ID_1251_PG12 (0x7030101) #define CHIP_ID_1251_PG12 (0x7030101)
......
...@@ -461,6 +461,7 @@ static void wl1251_op_stop(struct ieee80211_hw *hw) ...@@ -461,6 +461,7 @@ static void wl1251_op_stop(struct ieee80211_hw *hw)
wl->psm = 0; wl->psm = 0;
wl->tx_queue_stopped = false; wl->tx_queue_stopped = false;
wl->power_level = WL1251_DEFAULT_POWER_LEVEL; wl->power_level = WL1251_DEFAULT_POWER_LEVEL;
wl->channel = WL1251_DEFAULT_CHANNEL;
wl1251_debugfs_reset(wl); wl1251_debugfs_reset(wl);
...@@ -1302,7 +1303,6 @@ int wl1251_init_ieee80211(struct wl1251 *wl) ...@@ -1302,7 +1303,6 @@ int wl1251_init_ieee80211(struct wl1251 *wl)
} }
EXPORT_SYMBOL_GPL(wl1251_init_ieee80211); EXPORT_SYMBOL_GPL(wl1251_init_ieee80211);
#define WL1251_DEFAULT_CHANNEL 1
struct ieee80211_hw *wl1251_alloc_hw(void) struct ieee80211_hw *wl1251_alloc_hw(void)
{ {
struct ieee80211_hw *hw; struct ieee80211_hw *hw;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment