wl1271: Configure QOS nullfunc template for U-APSD
authorSaravanan Dhanabal <ext-saravanan.dhanabal@nokia.com>
Wed, 28 Apr 2010 06:50:00 +0000 (09:50 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 28 Apr 2010 20:50:26 +0000 (16:50 -0400)
When U-APSD is enabled, device is not sending power save
state notifications to AP using QOS nullfunc frames.

This patch configures nullfunc templates needed for U-APSD.

Signed-off-by: Saravanan Dhanabal <ext-saravanan.dhanabal@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/wl12xx/wl1271_main.c

index 08ff6447dcd98599ff6dbdedf0c9d2bfaa476c34..c160e5ad1e573310183e8d17f0e1b922ee710c42 100644 (file)
@@ -1707,6 +1707,10 @@ static void wl1271_op_bss_info_changed(struct ieee80211_hw *hw,
                        if (ret < 0)
                                goto out_sleep;
 
+                       ret = wl1271_build_qos_null_data(wl);
+                       if (ret < 0)
+                               goto out_sleep;
+
                        /* filter out all packets not from this BSSID */
                        wl1271_configure_filters(wl, 0);