]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc187ae8168a6534019a5236feaf22fb7c44899b3
tree8d9ef2670cd3b2f50fe3581820fba5aca365634d
parent0c5d42df729553db25f44936625d6434d887534a
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