提交 c238c8ac 编写于 作者: J Johannes Berg 提交者: John W. Linville

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: NJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 78485475
......@@ -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];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册