From: Johannes Berg Date: Tue, 7 Jul 2009 01:56:06 +0000 (+0200) Subject: cfg80211: dont use union for wext X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c238c8ac63f2d33ea5e7c0b9e9e0ccd8ae9a34e4;p=linux-beck.git 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 Signed-off-by: John W. Linville --- 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 { #ifdef CONFIG_WIRELESS_EXT /* wext data */ struct { - union { - struct cfg80211_ibss_params ibss; - struct cfg80211_connect_params connect; - }; + struct cfg80211_ibss_params ibss; + struct cfg80211_connect_params connect; u8 *ie; size_t ie_len; u8 bssid[ETH_ALEN];