History

wifi: nl80211: strict checking attributes for NL80211_CMD_SET_BSS

Assure user-space only modifies attributes for NL80211_CMD_SET_BSS that are supported by the driver. This stricter checking is only done when user-space commits to it by including NL80211_ATTR_BSS_PARAM.

Arend van Spriel committed 1 year ago

Commit 4f652a31 parent 18abf7a2 files · +49 −8Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+4−1
@@ -2931,7 +2931,10 @@ enum nl80211_commands { · 2930 unmodified lines
2931 * @enum nl80211_s1g_short_beacon_attrs for the attribute definitions.2931 * @enum nl80211_s1g_short_beacon_attrs for the attribute definitions.
2932 *2932 *
2933 * @NL80211_ATTR_BSS_PARAM: nested attribute used with %NL80211_CMD_GET_WIPHY2933 * @NL80211_ATTR_BSS_PARAM: nested attribute used with %NL80211_CMD_GET_WIPHY
2934 * which indicates which BSS parameters can be modified.2934 * which indicates which BSS parameters can be modified. The attribute can
2935 * also be used as flag attribute by user-space in %NL80211_CMD_SET_BSS to
2936 * indicate that it wants strict checking on the BSS parameters to be
2937 * modified.
2935 *2938 *
2936 * @NUM_NL80211_ATTR: total number of nl80211_attrs available2939 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
2937 * @NL80211_ATTR_MAX: highest attribute number currently defined2940 * @NL80211_ATTR_MAX: highest attribute number currently defined

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