diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-09-16 08:55:09 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-24 16:18:00 -0400 |
commit | 60719ffd721f6764b7d07ca188c0d944a4330b69 (patch) | |
tree | a224d5a7538e070430aac3a8a8f9abb4b0cd9152 /net/mac80211/iface.c | |
parent | 133b822638ff01eb1e32e1917b197c40ed095ddd (diff) |
cfg80211: show interface type
This patch makes cfg80211 show the interface in the nl80211
information about a specific interface. API users are required
to keep the type updated (everything else is fairly complicated)
but you will get a warning if you fail to keep it updated.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/iface.c')
-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 a72fbebb8ea2..b5cd91e89712 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -625,6 +625,7 @@ static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata, | |||
625 | /* and set some type-dependent values */ | 625 | /* and set some type-dependent values */ |
626 | sdata->vif.type = type; | 626 | sdata->vif.type = type; |
627 | sdata->dev->hard_start_xmit = ieee80211_subif_start_xmit; | 627 | sdata->dev->hard_start_xmit = ieee80211_subif_start_xmit; |
628 | sdata->wdev.iftype = type; | ||
628 | 629 | ||
629 | /* only monitor differs */ | 630 | /* only monitor differs */ |
630 | sdata->dev->type = ARPHRD_ETHER; | 631 | sdata->dev->type = ARPHRD_ETHER; |