History

cfg80211: Add TDLS event to allow drivers to request operations

The NL80211_CMD_TDLS_OPER command was previously used only for userspace request for the kernel code to perform TDLS operations. However, there are also cases where the driver may need to request operations from userspace, e.g., when using security on the AP path. Add a new cfg80211 function for generating a TDLS operation event for drivers to request a new link to be set up (NL80211_TDLS_SETUP) or an existing link to be torn down (NL80211_TDLS_TEARDOWN). Drivers can optionally use these events, e.g., based on noticing data traffic being sent to a peer station that is seen with good signal strength.

Jouni Malinen committed 14 years ago

Commit 3475b091 parent 90b9e444 files · +95 −0Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+6−0
@@ -526,6 +526,12 @@ · 525 unmodified lines
526526 * of PMKSA caching dandidates.
527527 *
528528 * @NL80211_CMD_TDLS_OPER: Perform a high-level TDLS command (e.g. link setup).
529+ * In addition, this can be used as an event to request userspace to take
530+ * actions on TDLS links (set up a new link or tear down an existing one).
531+ * In such events, %NL80211_ATTR_TDLS_OPERATION indicates the requested
532+ * operation, %NL80211_ATTR_MAC contains the peer MAC address, and
533+ * %NL80211_ATTR_REASON_CODE the reason code to be used (only with
534+ * %NL80211_TDLS_TEARDOWN).
529535 * @NL80211_CMD_TDLS_MGMT: Send a TDLS management frame.
530536 *
531537 * @NL80211_CMD_UNEXPECTED_FRAME: Used by an application controlling an AP

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