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
29312931 * @enum nl80211_s1g_short_beacon_attrs for the attribute definitions.
29322932 *
29332933 * @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.
29352938 *
29362939 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
29372940 * @NL80211_ATTR_MAX: highest attribute number currently defined