diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-07-10 13:32:08 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-07-12 16:07:25 -0400 |
commit | 40f7cac9f8dd662c1dd02334afdceef0be03e34f (patch) | |
tree | 6c8cedbfa99b67305d1b845d7a140a0a185981a6 /net/mac80211/ieee80211_iface.c | |
parent | 333af2f0715c8d4d38cb657d8f4fb7c4e3ceba9f (diff) |
[PATCH] mac80211: separate monitor/subif_start_xmit
This patch separates the monitor interface start_xmit from the
subif start xmit (those other devices have 802.3 framing, monitor
interfaces have radiotap framing)
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Jiri Benc <jbenc@suse.cz>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_iface.c')
-rw-r--r-- | net/mac80211/ieee80211_iface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_iface.c b/net/mac80211/ieee80211_iface.c index cf0f32e8c2a2..8532a5ccdd1e 100644 --- a/net/mac80211/ieee80211_iface.c +++ b/net/mac80211/ieee80211_iface.c | |||
@@ -157,6 +157,8 @@ void ieee80211_if_set_type(struct net_device *dev, int type) | |||
157 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); | 157 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); |
158 | int oldtype = sdata->type; | 158 | int oldtype = sdata->type; |
159 | 159 | ||
160 | dev->hard_start_xmit = ieee80211_subif_start_xmit; | ||
161 | |||
160 | sdata->type = type; | 162 | sdata->type = type; |
161 | switch (type) { | 163 | switch (type) { |
162 | case IEEE80211_IF_TYPE_WDS: | 164 | case IEEE80211_IF_TYPE_WDS: |
@@ -196,6 +198,7 @@ void ieee80211_if_set_type(struct net_device *dev, int type) | |||
196 | } | 198 | } |
197 | case IEEE80211_IF_TYPE_MNTR: | 199 | case IEEE80211_IF_TYPE_MNTR: |
198 | dev->type = ARPHRD_IEEE80211_RADIOTAP; | 200 | dev->type = ARPHRD_IEEE80211_RADIOTAP; |
201 | dev->hard_start_xmit = ieee80211_monitor_start_xmit; | ||
199 | break; | 202 | break; |
200 | default: | 203 | default: |
201 | printk(KERN_WARNING "%s: %s: Unknown interface type 0x%x", | 204 | printk(KERN_WARNING "%s: %s: Unknown interface type 0x%x", |