cfg80211: Add support for QoS mapping
This allows QoS mapping from external networks to be implemented as defined in IEEE Std 802.11-2012, 10.24.9. APs can use this to advertise DSCP ranges and exceptions for mapping frames to a specific UP over Wi-Fi. The payload of the QoS Map Set element (IEEE Std 802.11-2012, 8.4.2.97) is sent to the driver through the new NL80211_ATTR_QOS_MAP attribute to configure the local behavior either on the AP (based on local configuration) or on a station (based on information received from the AP). Signed-off-by: Kyeyoon Park <kyeyoonp@qca.qualcomm.com> Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
567ffc3509
commit
fa9ffc7456
13 changed files with 210 additions and 5 deletions
|
|
@ -702,6 +702,12 @@
|
|||
* (&struct nl80211_vendor_cmd_info) of the supported vendor commands.
|
||||
* This may also be sent as an event with the same attributes.
|
||||
*
|
||||
* @NL80211_CMD_SET_QOS_MAP: Set Interworking QoS mapping for IP DSCP values.
|
||||
* The QoS mapping information is included in %NL80211_ATTR_QOS_MAP. If
|
||||
* that attribute is not included, QoS mapping is disabled. Since this
|
||||
* QoS mapping is relevant for IP packets, it is only valid during an
|
||||
* association. This is cleared on disassociation and AP restart.
|
||||
*
|
||||
* @NL80211_CMD_MAX: highest used command number
|
||||
* @__NL80211_CMD_AFTER_LAST: internal use
|
||||
*/
|
||||
|
|
@ -871,6 +877,8 @@ enum nl80211_commands {
|
|||
|
||||
NL80211_CMD_VENDOR,
|
||||
|
||||
NL80211_CMD_SET_QOS_MAP,
|
||||
|
||||
/* add new commands above here */
|
||||
|
||||
/* used to define NL80211_CMD_MAX below */
|
||||
|
|
@ -1543,6 +1551,10 @@ enum nl80211_commands {
|
|||
* @NL80211_ATTR_VENDOR_EVENTS: used for event list advertising in the wiphy
|
||||
* info, containing a nested array of possible events
|
||||
*
|
||||
* @NL80211_ATTR_QOS_MAP: IP DSCP mapping for Interworking QoS mapping. This
|
||||
* data is in the format defined for the payload of the QoS Map Set element
|
||||
* in IEEE Std 802.11-2012, 8.4.2.97.
|
||||
*
|
||||
* @NL80211_ATTR_MAX: highest attribute number currently defined
|
||||
* @__NL80211_ATTR_AFTER_LAST: internal use
|
||||
*/
|
||||
|
|
@ -1869,6 +1881,8 @@ enum nl80211_attrs {
|
|||
NL80211_ATTR_VENDOR_DATA,
|
||||
NL80211_ATTR_VENDOR_EVENTS,
|
||||
|
||||
NL80211_ATTR_QOS_MAP,
|
||||
|
||||
/* add attributes here, update the policy in nl80211.c */
|
||||
|
||||
__NL80211_ATTR_AFTER_LAST,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue