Skip to content

Commit

Permalink
cfg80211: dont use union for wext
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jul 10, 2009
1 parent 7848547 commit c238c8a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/net/cfg80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit c238c8a

Please sign in to comment.