wl1251: retry power save entry
Port of the power save entry retry code from wl1251 driver version included in the Maemo Fremantle kernel. This tries to enable power save mode up to 3 times before failing. Signed-off-by: David Gnedt <david.gnedt@davizone.at> Signed-off-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
64322e28d3
commit
f7ad1eed4d
@@ -479,6 +479,7 @@ static void wl1251_op_stop(struct ieee80211_hw *hw)
|
||||
wl->next_tx_complete = 0;
|
||||
wl->elp = false;
|
||||
wl->station_mode = STATION_ACTIVE_MODE;
|
||||
wl->psm_entry_retry = 0;
|
||||
wl->tx_queue_stopped = false;
|
||||
wl->power_level = WL1251_DEFAULT_POWER_LEVEL;
|
||||
wl->rssi_thold = 0;
|
||||
@@ -1414,6 +1415,7 @@ struct ieee80211_hw *wl1251_alloc_hw(void)
|
||||
wl->elp = false;
|
||||
wl->station_mode = STATION_ACTIVE_MODE;
|
||||
wl->psm_requested = false;
|
||||
wl->psm_entry_retry = 0;
|
||||
wl->tx_queue_stopped = false;
|
||||
wl->power_level = WL1251_DEFAULT_POWER_LEVEL;
|
||||
wl->rssi_thold = 0;
|
||||
|
Reference in New Issue
Block a user