Currently, the proximity detection (PD) interface type has no start/stop commands defined, preventing user space from controlling PD operations through the nl80211 interface. Add NL80211_CMD_START_PD and NL80211_CMD_STOP_PD commands to allow user space to start and stop a PD interface. Add the corresponding start_pd and stop_pd operations to cfg80211_ops and ieee80211_ops, along with nl80211 command handlers, rdev wrappers, and tracing support. Validate that drivers advertising PD interface support implement the required operations. Handle PD interface teardown during device unregistration and when the interface leaves the network.
Showing the changes to include/uapi (1 of 7 files). Show all
Unified · Split
| @@ -1419,6 +1419,12 @@ · 1418 unmodified lines | ||
| 1419 | 1419 | * identifying the evacuated channel. |
| 1420 | 1420 | * User space may reconfigure the local schedule in response to this |
| 1421 | 1421 | * notification. |
| 1422 | + * @NL80211_CMD_START_PD: Start PD operation, identified by its | |
| 1423 | + * %NL80211_ATTR_WDEV interface. This interface must have been previously | |
| 1424 | + * created with %NL80211_CMD_NEW_INTERFACE. | |
| 1425 | + * @NL80211_CMD_STOP_PD: Stop the PD operation, identified by | |
| 1426 | + * its %NL80211_ATTR_WDEV interface. | |
| 1427 | + * | |
| 1422 | 1428 | * @NL80211_CMD_MAX: highest used command number |
| 1423 | 1429 | * @__NL80211_CMD_AFTER_LAST: internal use |
| 1424 | 1430 | */ |
| @@ -1694,6 +1700,9 @@ enum nl80211_commands { · 269 unmodified lines | ||
| 1694 | 1700 | |
| 1695 | 1701 | NL80211_CMD_NAN_CHANNEL_EVAC, |
| 1696 | 1702 | |
| 1703 | + NL80211_CMD_START_PD, | |
| 1704 | + NL80211_CMD_STOP_PD, | |
| 1705 | + | |
| 1697 | 1706 | /* add new commands above here */ |
| 1698 | 1707 | |
| 1699 | 1708 | /* used to define NL80211_CMD_MAX below */ |