History

cfg80211: Allow TDLS peer AID to be configured for VHT

VHT uses peer AID in the PARTIAL_AID field in TDLS frames. The current design for TDLS is to first add a dummy STA entry before completing TDLS Setup and then update information on this STA entry based on what was received from the peer during the setup exchange. In theory, this could use NL80211_ATTR_STA_AID to set the peer AID just like this is used in AP mode to set the AID of an association station. However, existing cfg80211 validation rules prevent this attribute from being used with set_station operation. To avoid interoperability issues between different kernel and user space version combinations, introduce a new nl80211 attribute for the purpose of setting TDLS peer AID. This attribute can be used in both the new_station and set_station operations. It is not supposed to be allowed to change the AID value during the lifetime of the STA entry, but that validation is left for drivers to do in the change_station callback.

Jouni Malinen committed 13 years ago

Commit 5e4b6f51 parent 786677d2 files · +16 −2Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/nl80211.h+7−0
@@ -1431,6 +1431,11 @@ enum nl80211_commands { · 1430 unmodified lines
14311431 * @NL80211_ATTR_MAX_CRIT_PROT_DURATION: duration in milliseconds in which
14321432 * the connection should have increased reliability (u16).
14331433 *
1434+ * @NL80211_ATTR_PEER_AID: Association ID for the peer TDLS station (u16).
1435+ * This is similar to @NL80211_ATTR_STA_AID but with a difference of being
1436+ * allowed to be used with the first @NL80211_CMD_SET_STATION command to
1437+ * update a TDLS peer STA entry.
1438+ *
14341439 * @NL80211_ATTR_MAX: highest attribute number currently defined
14351440 * @__NL80211_ATTR_AFTER_LAST: internal use
14361441 */
@@ -1729,6 +1734,8 @@ enum nl80211_attrs { · 292 unmodified lines
17291734 NL80211_ATTR_CRIT_PROT_ID,
17301735 NL80211_ATTR_MAX_CRIT_PROT_DURATION,
17311736
1737+ NL80211_ATTR_PEER_AID,
1738+
17321739 /* add attributes here, update the policy in nl80211.c */
17331740
17341741 __NL80211_ATTR_AFTER_LAST,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t