projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8aec30b
)
wifi: cfg80211: Fix interface type validation
author
Ilan Peer
<ilan.peer@intel.com>
Wed, 9 Jul 2025 20:37:55 +0000
(23:37 +0300)
committer
Johannes Berg
<johannes.berg@intel.com>
Tue, 15 Jul 2025 09:00:38 +0000
(11:00 +0200)
Fix a condition that verified valid values of interface types.
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link:
https://patch.msgid.link/20250709233537.7ad199ca5939.I0ac1ff74798bf59a87a57f2e18f2153c308b119b@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
patch
|
blob
|
blame
|
history
diff --git
a/include/net/cfg80211.h
b/include/net/cfg80211.h
index 6ec9a8865b8b082e235493ca64adf0fc60ec0175..f67424ec108540d1d3777d3d1b3727a893029b98 100644
(file)
--- a/
include/net/cfg80211.h
+++ b/
include/net/cfg80211.h
@@
-633,7
+633,7
@@
ieee80211_get_sband_iftype_data(const struct ieee80211_supported_band *sband,
const struct ieee80211_sband_iftype_data *data;
int i;
- if (WARN_ON(iftype >= N
L80211_IFTYPE_MAX
))
+ if (WARN_ON(iftype >= N
UM_NL80211_IFTYPES
))
return NULL;
if (iftype == NL80211_IFTYPE_AP_VLAN)