aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-04-24 08:16:36 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-04-30 20:34:26 -0400
commite94e106831403d5028e7bb73c3163951134de1ba (patch)
tree9d27e03504f390a747c4ef36e6bb93e0cd2c1f8e /net/mac80211/main.c
parent8b808bf29bdafe9270cb283ea093bb87f5a3be19 (diff)
mac80211: don't allow invalid WDS peer addresses
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>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index e12ffa172813..ab952fff1811 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -255,7 +255,7 @@ static int ieee80211_open(struct net_device *dev)
255 255
256 switch (sdata->vif.type) { 256 switch (sdata->vif.type) {
257 case IEEE80211_IF_TYPE_WDS: 257 case IEEE80211_IF_TYPE_WDS:
258 if (is_zero_ether_addr(sdata->u.wds.remote_addr)) 258 if (!is_valid_ether_addr(sdata->u.wds.remote_addr))
259 return -ENOLINK; 259 return -ENOLINK;
260 260
261 /* Create STA entry for the WDS peer */ 261 /* Create STA entry for the WDS peer */