aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-07-27 09:43:24 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:47:41 -0400
commit1bec3f1a3ec5d922d1040c7845b82cd496c02d90 (patch)
tree59707c55193c4b61ec4a5d14d704d4d3e767d872 /net/mac80211
parent9b8a74e3482f9fc077a88c13fa0ceca8feb0b772 (diff)
[MAC80211]: fix add_interface monitor mode behaviour
This makes it behave the same whether we have monitor during operation or not. 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')
-rw-r--r--net/mac80211/ieee80211.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c
index 4715a9525918..5fc240259f55 100644
--- a/net/mac80211/ieee80211.c
+++ b/net/mac80211/ieee80211.c
@@ -425,7 +425,10 @@ static int ieee80211_open(struct net_device *dev)
425 425
426 conf.if_id = dev->ifindex; 426 conf.if_id = dev->ifindex;
427 conf.type = sdata->type; 427 conf.type = sdata->type;
428 conf.mac_addr = dev->dev_addr; 428 if (sdata->type == IEEE80211_IF_TYPE_MNTR)
429 conf.mac_addr = NULL;
430 else
431 conf.mac_addr = dev->dev_addr;
429 res = local->ops->add_interface(local_to_hw(local), &conf); 432 res = local->ops->add_interface(local_to_hw(local), &conf);
430 if (res) { 433 if (res) {
431 if (sdata->type == IEEE80211_IF_TYPE_MNTR) 434 if (sdata->type == IEEE80211_IF_TYPE_MNTR)