From: Johannes Berg Date: Tue, 9 Sep 2014 19:55:35 +0000 (+0300) Subject: cfg80211: add WMM traffic stream API X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=b42df548477184070280a282471de37f1cc0a6d5;p=carl9170fw.git cfg80211: add WMM traffic stream API Add nl80211 and driver API to validate, add and delete traffic streams with appropriate settings. The API calls for userspace doing the action frame handshake with the peer, and then allows only to set up the parameters in the driver. To avoid setting up a session only to tear it down again, the validate API is provided, but the real usage later can still fail so userspace must be prepared for that. Signed-off-by: Johannes Berg Signed-off-by: Christian Lamparter --- diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 26d3553..f3699e3 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -162,8 +162,12 @@ static inline u16 ieee80211_sn_sub(u16 sn1, u16 sn2) #define IEEE80211_MAX_MESH_ID_LEN 32 +#define IEEE80211_FIRST_TSPEC_TSID 8 #define IEEE80211_NUM_TIDS 16 +/* number of user priorities 802.11 uses */ +#define IEEE80211_NUM_UPS 8 + #define IEEE80211_QOS_CTL_LEN 2 /* 1d tag mask */ #define IEEE80211_QOS_CTL_TAG1D_MASK 0x0007