projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6810ee9
)
wifi: mac80211: remove unnecessary ML element type check
author
Johannes Berg
<johannes.berg@intel.com>
Wed, 28 Feb 2024 08:48:10 +0000
(09:48 +0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Mon, 4 Mar 2024 13:32:49 +0000
(14:32 +0100)
At this point, since it's taken from elems->ml_basic which
is stored only if it's of type basic, we don't really need
to check again if it's basic.
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link:
https://msgid.link/20240228094901.ad1d4a09a6eb.Ib96fa75b1a6db21dd4182dcfa11fe9aff78fa3ed@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/parse.c
patch
|
blob
|
history
diff --git
a/net/mac80211/parse.c
b/net/mac80211/parse.c
index 233c761823d3b8d3e62af2f8a6e133a1c8c32f96..ae0f14bd952a8670cbd26e02d3f39c25fddc8c3e 100644
(file)
--- a/
net/mac80211/parse.c
+++ b/
net/mac80211/parse.c
@@
-723,10
+723,6
@@
static void ieee80211_mle_get_sta_prof(struct ieee802_11_elems *elems,
if (!ml || !ml_len)
return;
- if (le16_get_bits(ml->control, IEEE80211_ML_CONTROL_TYPE) !=
- IEEE80211_ML_CONTROL_TYPE_BASIC)
- return;
-
for_each_mle_subelement(sub, (u8 *)ml, ml_len) {
struct ieee80211_mle_per_sta_profile *prof = (void *)sub->data;
ssize_t sta_prof_len;