diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-07-09 08:40:35 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-07-14 14:30:07 -0400 |
commit | 75636525fbfa78fa33fd754c89785cfde750acd3 (patch) | |
tree | 2c614681382a53bec50248c621ba4c8bb07ce670 /net/mac80211/wext.c | |
parent | 3e122be089e6fb8d3f322416da4cdbb80ce12927 (diff) |
mac80211: revamp virtual interface handling
This patch revamps the virtual interface handling and makes the
code much easier to follow. Fewer functions, better names, less
spaghetti code.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/wext.c')
-rw-r--r-- | net/mac80211/wext.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c index e8e4a6215e89..f2fdd3342195 100644 --- a/net/mac80211/wext.c +++ b/net/mac80211/wext.c | |||
@@ -301,8 +301,7 @@ static int ieee80211_ioctl_siwmode(struct net_device *dev, | |||
301 | if (netif_running(dev)) | 301 | if (netif_running(dev)) |
302 | return -EBUSY; | 302 | return -EBUSY; |
303 | 303 | ||
304 | ieee80211_if_reinit(dev); | 304 | ieee80211_if_change_type(sdata, type); |
305 | ieee80211_if_set_type(dev, type); | ||
306 | 305 | ||
307 | return 0; | 306 | return 0; |
308 | } | 307 | } |