* [PATCH] mac80211: don't allow invalid WDS peer addresses
@ 2008-04-24 12:16 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2008-04-24 12:16 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless
Rather than just disallowing the zero address, disallow all
invalid ones.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
net/mac80211/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- everything.orig/net/mac80211/main.c 2008-04-24 13:29:06.000000000 +0200
+++ everything/net/mac80211/main.c 2008-04-24 13:29:13.000000000 +0200
@@ -255,7 +255,7 @@ static int ieee80211_open(struct net_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 */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-26 15:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-24 12:16 [PATCH] mac80211: don't allow invalid WDS peer addresses Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox