mac80211: add uapsd_queues and max_sp params fields
authorEliad Peller <eliad@wizery.com>
Tue, 23 Aug 2011 11:37:47 +0000 (14:37 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 26 Aug 2011 14:47:56 +0000 (10:47 -0400)
Add uapsd_queues and max_sp fields to ieee80211_sta.
These fields might be needed by low-level drivers in
order to configure the AP.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/cfg.c

index 2f01d84ca52f2d690eae5f6fd432a92e7b747288..2e752df575109dc1526d22d1dbe40aa5a3ed5f77 100644 (file)
@@ -954,6 +954,8 @@ struct ieee80211_sta {
        u16 aid;
        struct ieee80211_sta_ht_cap ht_cap;
        bool wme;
+       u8 uapsd_queues;
+       u8 max_sp;
 
        /* must be last */
        u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *))));
index 6ab67ab34b5c511c46314a10a5e857bdf488f6db..0baaaecf4558858e531a2643c1bf7401abb0b8b8 100644 (file)
@@ -697,6 +697,9 @@ static void sta_apply_parameters(struct ieee80211_local *local,
        }
        spin_unlock_irqrestore(&sta->flaglock, flags);
 
+       sta->sta.uapsd_queues = params->uapsd_queues;
+       sta->sta.max_sp = params->max_sp;
+
        /*
         * cfg80211 validates this (1-2007) and allows setting the AID
         * only when creating a new station entry