]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211: remove erroneous sband/link validation
authorJohannes Berg <johannes.berg@intel.com>
Thu, 21 Jul 2022 22:07:29 +0000 (00:07 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 22 Jul 2022 12:28:45 +0000 (14:28 +0200)
commit46f224f6c9f0e08597c0b0f079a2b09fae8cb3c4
treee3d96ee6cdff75ae6f15f444351a9eea5ac5cd59
parent4bc9d885c575a52e59631c6e8ec0843206eb858a
wifi: mac80211: remove erroneous sband/link validation

In sta_apply_parameters(), we really no longer need to
check that the link or sband exists, in fact, that's
harmful if link 0 doesn't exist, since then this will
fail.

Just remove this check, it was added for validation of
the sband where used, but it's not used here, it's now
only used in sta_link_apply_parameters() which has an
own lookup and check.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c