]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: Set wmediumd for new radios
authorAndrew Zaborowski <andrew.zaborowski@intel.com>
Wed, 21 Mar 2018 07:05:18 +0000 (08:05 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Mar 2018 12:01:54 +0000 (13:01 +0100)
commit5122bcee71ae49c71d45bb3540d05059af0827a7
tree27fbec57b7de3b5eb890e8b345cabe0965a0bc42
parent2f78b4dd80016d9715e59a0acce1d9d6e0edbfad
mac80211_hwsim: Set wmediumd for new radios

Set the wmediumd to the net's wmediumd when the radio gets created.
Radios created after HWSIM_CMD_REGISTER don't currently get their
data->wmediumd set and the userspace would need to reconnect to
netlink to be able to call HWSIM_CMD_REGISTER again.

Alternatively I think data->netgroup and data->wmedium could be
replaced with a pointer to hwsim_net.

Signed-off-by: Andrew Zaborowski <andrew.zaborowski@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c