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.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -526,6 +526,12 @@ · 525 unmodified lines | |||
| 526 | * of PMKSA caching dandidates. | 526 | * of PMKSA caching dandidates. |
| 527 | * | 527 | * |
| 528 | * @NL80211_CMD_TDLS_OPER: Perform a high-level TDLS command (e.g. link setup). | 528 | * @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). | ||
| 529 | * @NL80211_CMD_TDLS_MGMT: Send a TDLS management frame. | 535 | * @NL80211_CMD_TDLS_MGMT: Send a TDLS management frame. |
| 530 | * | 536 | * |
| 531 | * @NL80211_CMD_UNEXPECTED_FRAME: Used by an application controlling an AP | 537 | * @NL80211_CMD_UNEXPECTED_FRAME: Used by an application controlling an AP |