aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-08-07 11:54:07 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-14 09:13:44 -0400
commit5ba63533bbf653631faab60f6988506160ec6ba4 (patch)
tree8d9ef2670cd3b2f50fe3581820fba5aca365634d /net/mac80211/ieee80211_i.h
parentad5351db89681515681c5d5659ddf4c69e3cc6f5 (diff)
cfg80211: fix alignment problem in scan request
The memory layout for scan requests was rather wrong, we put the scan SSIDs before the channels which could lead to the channel pointers being unaligned in memory. It turns out that using a pointer to the channel array isn't necessary anyway since we can embed a zero-length array into the struct. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 99433222bc5c..d6bd7dd77960 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -715,7 +715,7 @@ struct ieee80211_local {
715 struct mutex scan_mtx; 715 struct mutex scan_mtx;
716 unsigned long scanning; 716 unsigned long scanning;
717 struct cfg80211_ssid scan_ssid; 717 struct cfg80211_ssid scan_ssid;
718 struct cfg80211_scan_request int_scan_req; 718 struct cfg80211_scan_request *int_scan_req;
719 struct cfg80211_scan_request *scan_req; 719 struct cfg80211_scan_request *scan_req;
720 struct ieee80211_channel *scan_channel; 720 struct ieee80211_channel *scan_channel;
721 const u8 *orig_ies; 721 const u8 *orig_ies;