aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/ps.c
diff options
context:
space:
mode:
authorEyal Shapira <eyal@wizery.com>2012-01-31 04:57:25 -0500
committerLuciano Coelho <coelho@ti.com>2012-02-15 01:38:32 -0500
commitd18da7fcca449f09c91a209b4f5006959c5a7656 (patch)
treeecc93d55861ee77e3ae6c196014ba281aa07d4bf /drivers/net/wireless/wl12xx/ps.c
parented471d3402b0fa77e52007c6f8d79b16c4194000 (diff)
wl12xx: change WLVIF_FLAG_PSM name and remove WLVIF_FLAG_PSM_REQUESTED
WLVIF_FLAG_PSM turned to WLVIF_FLAG_IN_AUTO_PS which marks that this vif is in AUTO PS. WLVIF_FLAG_PSM_REQUESTED is not required as mac80211 calls op_config with CONF_PS after association. wl12xx_config_vif() handling of CONF_PS was simplified and cleaned up. Signed-off-by: Eyal Shapira <eyal@wizery.com> Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/ps.c')
-rw-r--r--drivers/net/wireless/wl12xx/ps.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/wl12xx/ps.c b/drivers/net/wireless/wl12xx/ps.c
index d7a91d3c398d..e209e29ffb45 100644
--- a/drivers/net/wireless/wl12xx/ps.c
+++ b/drivers/net/wireless/wl12xx/ps.c
@@ -56,7 +56,7 @@ void wl1271_elp_work(struct work_struct *work)
56 if (wlvif->bss_type == BSS_TYPE_AP_BSS) 56 if (wlvif->bss_type == BSS_TYPE_AP_BSS)
57 goto out; 57 goto out;
58 58
59 if (!test_bit(WLVIF_FLAG_PSM, &wlvif->flags) && 59 if (!test_bit(WLVIF_FLAG_IN_AUTO_PS, &wlvif->flags) &&
60 test_bit(WLVIF_FLAG_IN_USE, &wlvif->flags)) 60 test_bit(WLVIF_FLAG_IN_USE, &wlvif->flags))
61 goto out; 61 goto out;
62 } 62 }
@@ -84,7 +84,7 @@ void wl1271_ps_elp_sleep(struct wl1271 *wl)
84 if (wlvif->bss_type == BSS_TYPE_AP_BSS) 84 if (wlvif->bss_type == BSS_TYPE_AP_BSS)
85 return; 85 return;
86 86
87 if (!test_bit(WLVIF_FLAG_PSM, &wlvif->flags) && 87 if (!test_bit(WLVIF_FLAG_IN_AUTO_PS, &wlvif->flags) &&
88 test_bit(WLVIF_FLAG_IN_USE, &wlvif->flags)) 88 test_bit(WLVIF_FLAG_IN_USE, &wlvif->flags))
89 return; 89 return;
90 } 90 }
@@ -180,7 +180,7 @@ int wl1271_ps_set_mode(struct wl1271 *wl, struct wl12xx_vif *wlvif,
180 if (ret < 0) 180 if (ret < 0)
181 return ret; 181 return ret;
182 182
183 set_bit(WLVIF_FLAG_PSM, &wlvif->flags); 183 set_bit(WLVIF_FLAG_IN_AUTO_PS, &wlvif->flags);
184 184
185 /* enable beacon early termination. Not relevant for 5GHz */ 185 /* enable beacon early termination. Not relevant for 5GHz */
186 if (wlvif->band == IEEE80211_BAND_2GHZ) { 186 if (wlvif->band == IEEE80211_BAND_2GHZ) {
@@ -203,7 +203,7 @@ int wl1271_ps_set_mode(struct wl1271 *wl, struct wl12xx_vif *wlvif,
203 if (ret < 0) 203 if (ret < 0)
204 return ret; 204 return ret;
205 205
206 clear_bit(WLVIF_FLAG_PSM, &wlvif->flags); 206 clear_bit(WLVIF_FLAG_IN_AUTO_PS, &wlvif->flags);
207 break; 207 break;
208 case STATION_POWER_SAVE_MODE: 208 case STATION_POWER_SAVE_MODE:
209 default: 209 default: