Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e94e1068 authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville
Browse files

mac80211: don't allow invalid WDS peer addresses



Rather than just disallowing the zero address, disallow all
invalid ones.

Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 8b808bf2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */