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

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
...@@ -1299,6 +1299,8 @@ static void mac80211_hwsim_config_mac_nl(struct ieee80211_hw *hw, ...@@ -1299,6 +1299,8 @@ static void mac80211_hwsim_config_mac_nl(struct ieee80211_hw *hw,
struct sk_buff *skb; struct sk_buff *skb;
void *msg_head; void *msg_head;
WARN_ON(!is_valid_ether_addr(addr));
if (!_portid && !hwsim_virtio_enabled) if (!_portid && !hwsim_virtio_enabled)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment