diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2010-08-23 23:28:03 -0400 |
---|---|---|
committer | Luciano Coelho <luciano.coelho@nokia.com> | 2010-09-28 05:15:11 -0400 |
commit | 65cddbf1353212f8ab00c6084e3063d85c419201 (patch) | |
tree | 3ec417fc98406d6310769a0d8a05a3067f307d78 /drivers/net/wireless/wl12xx/wl1271_main.c | |
parent | 02fabb0eafde901ae51532ad15fdd4737b7d71e3 (diff) |
wl1271: Reduce rate used for last PSM entry attempt
This patch reduces the rate of the null-func used to enter PSM on the last
retry as precaution.
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_main.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index 11e112ff79d6..81f92a0100d9 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c | |||
@@ -1341,7 +1341,7 @@ static int wl1271_op_config(struct ieee80211_hw *hw, u32 changed) | |||
1341 | if (test_bit(WL1271_FLAG_STA_ASSOCIATED, &wl->flags)) { | 1341 | if (test_bit(WL1271_FLAG_STA_ASSOCIATED, &wl->flags)) { |
1342 | wl1271_debug(DEBUG_PSM, "psm enabled"); | 1342 | wl1271_debug(DEBUG_PSM, "psm enabled"); |
1343 | ret = wl1271_ps_set_mode(wl, STATION_POWER_SAVE_MODE, | 1343 | ret = wl1271_ps_set_mode(wl, STATION_POWER_SAVE_MODE, |
1344 | true); | 1344 | wl->basic_rate_set, true); |
1345 | } | 1345 | } |
1346 | } else if (!(conf->flags & IEEE80211_CONF_PS) && | 1346 | } else if (!(conf->flags & IEEE80211_CONF_PS) && |
1347 | test_bit(WL1271_FLAG_PSM_REQUESTED, &wl->flags)) { | 1347 | test_bit(WL1271_FLAG_PSM_REQUESTED, &wl->flags)) { |
@@ -1351,7 +1351,7 @@ static int wl1271_op_config(struct ieee80211_hw *hw, u32 changed) | |||
1351 | 1351 | ||
1352 | if (test_bit(WL1271_FLAG_PSM, &wl->flags)) | 1352 | if (test_bit(WL1271_FLAG_PSM, &wl->flags)) |
1353 | ret = wl1271_ps_set_mode(wl, STATION_ACTIVE_MODE, | 1353 | ret = wl1271_ps_set_mode(wl, STATION_ACTIVE_MODE, |
1354 | true); | 1354 | wl->basic_rate_set, true); |
1355 | } | 1355 | } |
1356 | 1356 | ||
1357 | if (conf->power_level != wl->power_level) { | 1357 | if (conf->power_level != wl->power_level) { |
@@ -1826,7 +1826,9 @@ static void wl1271_op_bss_info_changed(struct ieee80211_hw *hw, | |||
1826 | if (test_bit(WL1271_FLAG_PSM_REQUESTED, &wl->flags) && | 1826 | if (test_bit(WL1271_FLAG_PSM_REQUESTED, &wl->flags) && |
1827 | !test_bit(WL1271_FLAG_PSM, &wl->flags)) { | 1827 | !test_bit(WL1271_FLAG_PSM, &wl->flags)) { |
1828 | mode = STATION_POWER_SAVE_MODE; | 1828 | mode = STATION_POWER_SAVE_MODE; |
1829 | ret = wl1271_ps_set_mode(wl, mode, true); | 1829 | ret = wl1271_ps_set_mode(wl, mode, |
1830 | wl->basic_rate_set, | ||
1831 | true); | ||
1830 | if (ret < 0) | 1832 | if (ret < 0) |
1831 | goto out_sleep; | 1833 | goto out_sleep; |
1832 | } | 1834 | } |