mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
UPSTREAM: wifi: nl80211: use link ID in NL80211_CMD_SET_BSS
We clearly need the link ID here, to know the right BSS
to configure. Use/require it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Bug: 271996243
Change-Id: I071708c1f521ee6f930472a60d5ee5d6aca43d72
(cherry picked from commit 1e0f8cc96b)
Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1d2f0fdb9a
commit
c20c83bbab
@@ -2105,6 +2105,7 @@ struct mpath_info {
|
||||
*
|
||||
* Used to change BSS parameters (mainly for AP mode).
|
||||
*
|
||||
* @link_id: link_id or -1 for non-MLD
|
||||
* @use_cts_prot: Whether to use CTS protection
|
||||
* (0 = no, 1 = yes, -1 = do not change)
|
||||
* @use_short_preamble: Whether the use of short preambles is allowed
|
||||
@@ -2122,6 +2123,7 @@ struct mpath_info {
|
||||
* @p2p_opp_ps: P2P opportunistic PS (-1 = no change)
|
||||
*/
|
||||
struct bss_parameters {
|
||||
int link_id;
|
||||
int use_cts_prot;
|
||||
int use_short_preamble;
|
||||
int use_short_slot_time;
|
||||
|
||||
@@ -7783,6 +7783,7 @@ static int nl80211_set_bss(struct sk_buff *skb, struct genl_info *info)
|
||||
int err;
|
||||
|
||||
memset(¶ms, 0, sizeof(params));
|
||||
params.link_id = nl80211_link_id_or_invalid(info->attrs);
|
||||
/* default to not changing parameters */
|
||||
params.use_cts_prot = -1;
|
||||
params.use_short_preamble = -1;
|
||||
@@ -16567,7 +16568,8 @@ static const struct genl_small_ops nl80211_small_ops[] = {
|
||||
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
|
||||
.doit = nl80211_set_bss,
|
||||
.flags = GENL_UNS_ADMIN_PERM,
|
||||
.internal_flags = IFLAGS(NL80211_FLAG_NEED_NETDEV_UP),
|
||||
.internal_flags = IFLAGS(NL80211_FLAG_NEED_NETDEV_UP |
|
||||
NL80211_FLAG_MLO_VALID_LINK_ID),
|
||||
},
|
||||
{
|
||||
.cmd = NL80211_CMD_GET_REG,
|
||||
|
||||
Reference in New Issue
Block a user