Skip to content

Commit 14450be

Browse files
ilanpeer2jmberg-intel
authored andcommitted
wifi: cfg80211: Fix interface type validation
Fix a condition that verified valid values of interface types. Signed-off-by: Ilan Peer <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250709233537.7ad199ca5939.I0ac1ff74798bf59a87a57f2e18f2153c308b119b@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 8aec30b commit 14450be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/net/cfg80211.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ ieee80211_get_sband_iftype_data(const struct ieee80211_supported_band *sband,
633633
const struct ieee80211_sband_iftype_data *data;
634634
int i;
635635

636-
if (WARN_ON(iftype >= NL80211_IFTYPE_MAX))
636+
if (WARN_ON(iftype >= NUM_NL80211_IFTYPES))
637637
return NULL;
638638

639639
if (iftype == NL80211_IFTYPE_AP_VLAN)

0 commit comments

Comments
 (0)