cfg80211: fix alignment problem in scan request
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 7 Aug 2009 15:54:07 +0000 (17:54 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Aug 2009 13:13:44 +0000 (09:13 -0400)
commit5ba63533bbf653631faab60f6988506160ec6ba4
tree8d9ef2670cd3b2f50fe3581820fba5aca365634d
parentad5351db89681515681c5d5659ddf4c69e3cc6f5
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>
include/net/cfg80211.h
net/mac80211/ieee80211_i.h
net/mac80211/main.c
net/mac80211/scan.c
net/wireless/nl80211.c
net/wireless/scan.c
net/wireless/sme.c