Commit d901858
committed
wifi: cfg80211: adjust allocation of colocated AP data
JIRA: https://issues.redhat.com/browse/RHEL-79791
commit 1a0d247
Author: Dmitry Antipov <dmantipov@yandex.ru>
Date: Mon Jan 13 18:54:17 2025 +0300
wifi: cfg80211: adjust allocation of colocated AP data
In 'cfg80211_scan_6ghz()', an instances of 'struct cfg80211_colocated_ap'
are allocated as if they would have 'ssid' as trailing VLA member. Since
this is not so, extra IEEE80211_MAX_SSID_LEN bytes are not needed.
Briefly tested with KUnit.
Fixes: c8cb5b8 ("nl80211/cfg80211: support 6 GHz scanning")
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Link: https://patch.msgid.link/20250113155417.552587-1-dmantipov@yandex.ru
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>1 parent 93ba550 commit d901858
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
896 | | - | |
897 | | - | |
898 | | - | |
| 896 | + | |
899 | 897 | | |
900 | 898 | | |
901 | 899 | | |
| |||
0 commit comments