mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
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>
This commit is contained in:
parent
8b808bf29b
commit
e94e106831
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue