@@ -4030,6 +4030,21 @@ out_unlock_mutex:
mutex_unlock(&wl->mutex);
}
+static void b43_op_change_ps(struct ieee80211_hw *hw,
+ struct ieee80211_vif *vif)
+{
+ struct b43_wl *wl = hw_to_b43_wl(hw);
+ unsigned int ps_flags;
+
+ if (vif->ps_mode == IEEE80211_VIF_PS_DOZE ||
+ vif->ps_mode == IEEE80211_VIF_PS_AWAKE_PM)
+ ps_flags = B43_PS_ENABLED;
+ else
+ ps_flags = B43_PS_DISABLED;
+
+ b43_power_saving_ctl_bits(wl->current_dev, ps_flags);
+}
+
static int b43_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
struct ieee80211_vif *vif, struct ieee80211_sta *sta,
struct ieee80211_key_conf *key)
@@ -5031,6 +5046,7 @@ static const struct ieee80211_ops b43_hw_ops = {
.remove_interface = b43_op_remove_interface,
.config = b43_op_config,
.bss_info_changed = b43_op_bss_info_changed,
+ .change_ps = b43_op_change_ps,
.configure_filter = b43_op_configure_filter,
.set_key = b43_op_set_key,
.update_tkip_key = b43_op_update_tkip_key,
Even though powersave is not supported the HWPS bit still needs to be set in order to transmit nullfunc frames with PM set. Add support for the change_ps callback to set this bit whenever the powersave mode requires PM to be set. Signed-off-by: Seth Forshee <seth.forshee@canonical.com> --- drivers/net/wireless/b43/main.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)