History

wifi: cfg80211: add start/stop proximity detection commands

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.

Peddolla Harshavardhan Reddy committed 6 months ago

Commit b47a6e41 parent 55f23d67 files · +133 −1Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+9−0
@@ -1419,6 +1419,12 @@ · 1418 unmodified lines
14191419 * identifying the evacuated channel.
14201420 * User space may reconfigure the local schedule in response to this
14211421 * 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+ *
14221428 * @NL80211_CMD_MAX: highest used command number
14231429 * @__NL80211_CMD_AFTER_LAST: internal use
14241430 */
@@ -1694,6 +1700,9 @@ enum nl80211_commands { · 269 unmodified lines
16941700
16951701 NL80211_CMD_NAN_CHANNEL_EVAC,
16961702
1703+ NL80211_CMD_START_PD,
1704+ NL80211_CMD_STOP_PD,
1705+
16971706 /* add new commands above here */
16981707
16991708 /* used to define NL80211_CMD_MAX below */

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