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.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -2931,7 +2931,10 @@ enum nl80211_commands { · 2930 unmodified lines | ||
| 2931 | 2931 | * @enum nl80211_s1g_short_beacon_attrs for the attribute definitions. |
| 2932 | 2932 | * |
| 2933 | 2933 | * @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 | 2939 | * @NUM_NL80211_ATTR: total number of nl80211_attrs available |
| 2937 | 2940 | * @NL80211_ATTR_MAX: highest attribute number currently defined |