mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue