wl1251: disable power saving in monitor mode
PATCH 15/18 wl1251: disable power saving in monitor mode
Force power saving off while monitor interface is present.
--- drivers/net/wireless/wl1251/main.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
drivers/net/wireless/wl1251/main.c +4 -3
@@ -616,7 +616,8 @@ static int wl1251_op_config(struct ieee80211_hw *hw, u32 changed) goto out_sleep; } -if (conf->flags &IEEE80211_CONF_PS && !wl->psm_requested) { +if (conf->flags &IEEE80211_CONF_PS && !wl->psm_requested && + !wl->monitor_present) {wl1251_debug (DEBUG_PSM ,"psm enabled" ); wl->psm_requested = true;
@@ -632,8 +633,8 @@ static int wl1251_op_config(struct ieee80211_hw *hw, u32 changed) ret =wl1251_ps_set_mode (wl,STATION_POWER_SAVE_MODE );if (ret <0 ) goto out_sleep; - }else if (!(conf->flags &IEEE80211_CONF_PS ) && - wl->psm_requested) { + }else if ((!(conf->flags &IEEE80211_CONF_PS ) || wl->monitor_present) + && wl->psm_requested) {wl1251_debug (DEBUG_PSM ,"psm disabled" ); wl->psm_requested = false;
Signature · 1 line
1.7.0.4
PATCH 15/18 wl1251: disable power saving in monitor mode
Force power saving off while monitor interface is present.
---
Sorry for the partly broken patches, I thought I configured my client the right way. I tried to stop the mails at my mailserver, but it was mostly already too late.
--- drivers/net/wireless/wl1251/main.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
drivers/net/wireless/wl1251/main.c +4 -3
@@ -616,7 +616,8 @@ static int wl1251_op_config(struct ieee80211_hw *hw, u32 changed) goto out_sleep; } -if (conf->flags &IEEE80211_CONF_PS && !wl->psm_requested) { +if (conf->flags &IEEE80211_CONF_PS && !wl->psm_requested && + !wl->monitor_present) {wl1251_debug (DEBUG_PSM ,"psm enabled" ); wl->psm_requested = true;
@@ -632,8 +633,8 @@ static int wl1251_op_config(struct ieee80211_hw *hw, u32 changed) ret =wl1251_ps_set_mode (wl,STATION_POWER_SAVE_MODE );if (ret <0 ) goto out_sleep; - }else if (!(conf->flags &IEEE80211_CONF_PS ) && - wl->psm_requested) { + }else if ((!(conf->flags &IEEE80211_CONF_PS ) || wl->monitor_present) + && wl->psm_requested) {wl1251_debug (DEBUG_PSM ,"psm disabled" ); wl->psm_requested = false;
Signature · 1 line
1.7.0.4
Quoted 1 line · David Gnedt
Force power saving off while monitor interface is present.
Again, why?
Maybe to avoid dropping frames when associated? That would make sense. But on the other hand someone might want to have power save enabled when using monitor mode, for example when debugging power save related issues.
Nevertheless, I think mac80211 is the correct place to do this, not the driver.
Signature · 1 line
Kalle Valo
Am 2011-01-31 16:51, schrieb Kalle Valo:
Quoted 6 lines
Quoted 1 line · David Gnedt
Force power saving off while monitor interface is present.
Again, why?
Quoted 7 lines
Maybe to avoid dropping frames when associated? That would make sense. But on the other hand someone might want to have power save enabled when using monitor mode, for example when debugging power save related issues.
Nevertheless, I think mac80211 is the correct place to do this, not the driver.
Yeah, my thought was to avoid dropping frames when associated. I am going to drop that patch in v2.