]> err.no Git - linux-2.6/commitdiff
mac80211: don't allow invalid WDS peer addresses
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 24 Apr 2008 12:16:36 +0000 (14:16 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 1 May 2008 00:34:26 +0000 (20:34 -0400)
Rather than just disallowing the zero address, disallow all
invalid ones.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/main.c

index e12ffa172813e193264198fa72108eab5bedba23..ab952fff1811798207bde3fc1f27b92544ffa622 100644 (file)
@@ -255,7 +255,7 @@ static int ieee80211_open(struct net_device *dev)
 
        switch (sdata->vif.type) {
        case IEEE80211_IF_TYPE_WDS:
-               if (is_zero_ether_addr(sdata->u.wds.remote_addr))
+               if (!is_valid_ether_addr(sdata->u.wds.remote_addr))
                        return -ENOLINK;
 
                /* Create STA entry for the WDS peer */