aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/wext.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-07-09 14:40:35 +0200
committerJohn W. Linville <linville@tuxdriver.com>2008-07-14 14:30:07 -0400
commit75636525fbfa78fa33fd754c89785cfde750acd3 (patch)
tree2c614681382a53bec50248c621ba4c8bb07ce670 /net/mac80211/wext.c
parent3e122be089e6fb8d3f322416da4cdbb80ce12927 (diff)
downloadkernel_samsung_smdk4412-75636525fbfa78fa33fd754c89785cfde750acd3.zip
kernel_samsung_smdk4412-75636525fbfa78fa33fd754c89785cfde750acd3.tar.gz
kernel_samsung_smdk4412-75636525fbfa78fa33fd754c89785cfde750acd3.tar.bz2
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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c
index e8e4a62..f2fdd33 100644
--- a/net/mac80211/wext.c
+++ b/net/mac80211/wext.c
@@ -301,8 +301,7 @@ static int ieee80211_ioctl_siwmode(struct net_device *dev,
if (netif_running(dev))
return -EBUSY;
- ieee80211_if_reinit(dev);
- ieee80211_if_set_type(dev, type);
+ ieee80211_if_change_type(sdata, type);
return 0;
}