Commit 419bd7a7 authored by Johannes Berg's avatar Johannes Berg
Browse files

wifi: mac80211_hwsim: warn on invalid link address



Catch the bugs fixed in mac80211 by the previous commits
and warn if an invalid address is added (or removed).

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent a033afca
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1299,6 +1299,8 @@ static void mac80211_hwsim_config_mac_nl(struct ieee80211_hw *hw,
	struct sk_buff *skb;
	void *msg_head;

	WARN_ON(!is_valid_ether_addr(addr));

	if (!_portid && !hwsim_virtio_enabled)
		return;