diff options
author | Abhijeet Kolekar <abhijeet.kolekar@intel.com> | 2008-09-12 13:44:08 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-15 16:48:26 -0400 |
commit | e16ce63c893ff7ccb314d2fbdafbbc915b64d173 (patch) | |
tree | 4810884f3bab727cb52a626e158e079f01706fd4 /net/mac80211 | |
parent | 538df283c185c477dbdafafa9652c33e9742de75 (diff) | |
download | kernel_goldelico_gta04-e16ce63c893ff7ccb314d2fbdafbbc915b64d173.zip kernel_goldelico_gta04-e16ce63c893ff7ccb314d2fbdafbbc915b64d173.tar.gz kernel_goldelico_gta04-e16ce63c893ff7ccb314d2fbdafbbc915b64d173.tar.bz2 |
mac80211 : Fix mode change hard_start_xmit function
When monitor mode is changed to BSS or IBSS, data trasnfer can not happen
because proper transmit function is not assigend for BSS ,IBSS mode.
This patch fixes this problem by assigning the ieee80211_subif_start_xmit
to device's hard_start_xmit function.
Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
Acked-by: Zhu Yi <yi.zhu@intel.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/iface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index a7ef028..a72fbeb 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -624,6 +624,7 @@ static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata, /* and set some type-dependent values */ sdata->vif.type = type; + sdata->dev->hard_start_xmit = ieee80211_subif_start_xmit; /* only monitor differs */ sdata->dev->type = ARPHRD_ETHER; |