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: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
a033afca2d
commit
419bd7a7aa
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue