projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b808bf
)
mac80211: don't allow invalid WDS peer addresses
author
Johannes Berg
<johannes@sipsolutions.net>
Thu, 24 Apr 2008 12:16:36 +0000
(14:16 +0200)
committer
John 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
patch
|
blob
|
blame
|
history
diff --git
a/net/mac80211/main.c
b/net/mac80211/main.c
index e12ffa172813e193264198fa72108eab5bedba23..ab952fff1811798207bde3fc1f27b92544ffa622 100644
(file)
--- a/
net/mac80211/main.c
+++ b/
net/mac80211/main.c
@@
-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 */