mwl8k: Set hardware flag IEEE80211_HW_AP_LINK_PS
authorYogesh Ashok Powar <yogeshp@marvell.com>
Mon, 29 Aug 2011 11:42:44 +0000 (17:12 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 13 Sep 2011 19:42:31 +0000 (15:42 -0400)
This will avoid mac80211 to trigger PS mode for connected station
based on the PM bit of incoming frames. AP firmware is capable of
handling such frames and buffering TX frames destined to the
stations that are in PS mode.

Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwl8k.c

index 771280a47ea7c66da2f1d74fa2fb92e4c4a9fe46..ea1395aafa39104e9f2791242d4fbb8baaefd439 100644 (file)
@@ -5501,6 +5501,14 @@ static int mwl8k_firmware_load_success(struct mwl8k_priv *priv)
 
        /* Set rssi values to dBm */
        hw->flags |= IEEE80211_HW_SIGNAL_DBM | IEEE80211_HW_HAS_RATE_CONTROL;
+
+       /*
+        * Ask mac80211 to not to trigger PS mode
+        * based on PM bit of incoming frames.
+        */
+       if (priv->ap_fw)
+               hw->flags |= IEEE80211_HW_AP_LINK_PS;
+
        hw->vif_data_size = sizeof(struct mwl8k_vif);
        hw->sta_data_size = sizeof(struct mwl8k_sta);
 
This page took 0.027393 seconds and 5 git commands to generate.