]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MAC80211]: fix add_interface monitor mode behaviour
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 27 Jul 2007 13:43:24 +0000 (15:43 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:47:41 +0000 (16:47 -0700)
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>
net/mac80211/ieee80211.c

index 4715a9525918ca9b89f61e79e9758c66e2709327..5fc240259f55c8e85b42038edbc4ae6e47b1f327 100644 (file)
@@ -425,7 +425,10 @@ static int ieee80211_open(struct net_device *dev)
 
        conf.if_id = dev->ifindex;
        conf.type = sdata->type;
-       conf.mac_addr = dev->dev_addr;
+       if (sdata->type == IEEE80211_IF_TYPE_MNTR)
+               conf.mac_addr = NULL;
+       else
+               conf.mac_addr = dev->dev_addr;
        res = local->ops->add_interface(local_to_hw(local), &conf);
        if (res) {
                if (sdata->type == IEEE80211_IF_TYPE_MNTR)