Skip to content

Commit

Permalink
mac80211: don't allow invalid WDS peer addresses
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg authored and John W. Linville committed May 1, 2008
1 parent 8b808bf commit e94e106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit e94e106

Please sign in to comment.