diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-07-06 21:56:06 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:02:31 -0400 |
commit | c238c8ac63f2d33ea5e7c0b9e9e0ccd8ae9a34e4 (patch) | |
tree | c1153e29df9ae06fa5d2a7539aa24edc97af9122 /include/net/cfg80211.h | |
parent | 78485475618cf9f1c70dc7f15e8deafa8b6074ab (diff) |
cfg80211: dont use union for wext
Otherwise it becomes very hard to reset the structs
correctly since wext can be configured while the
interface is down.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 71847d3c2640..fe49833242d7 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -1270,10 +1270,8 @@ struct wireless_dev { | |||
1270 | #ifdef CONFIG_WIRELESS_EXT | 1270 | #ifdef CONFIG_WIRELESS_EXT |
1271 | /* wext data */ | 1271 | /* wext data */ |
1272 | struct { | 1272 | struct { |
1273 | union { | 1273 | struct cfg80211_ibss_params ibss; |
1274 | struct cfg80211_ibss_params ibss; | 1274 | struct cfg80211_connect_params connect; |
1275 | struct cfg80211_connect_params connect; | ||
1276 | }; | ||
1277 | u8 *ie; | 1275 | u8 *ie; |
1278 | size_t ie_len; | 1276 | size_t ie_len; |
1279 | u8 bssid[ETH_ALEN]; | 1277 | u8 bssid[ETH_ALEN]; |