]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: add nl_err_msg in hwsim_new_radio in netlink case
authorBenjamin Beichler <benjamin.beichler@uni-rostock.de>
Mon, 22 Jan 2018 17:04:36 +0000 (18:04 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 31 Jan 2018 11:46:39 +0000 (12:46 +0100)
commit45f2b585f82572e87ff3f04b3ba40a8732853636
treea4eb8e44957bf26ccc96164fa2f1459f03f8920d
parent8a8253e0cfdcdcfdfcd07f30834fec9d75733b5a
mac80211_hwsim: add nl_err_msg in hwsim_new_radio in netlink case

Add a NL_ERR_MSG in case of creating a radio by a netlink message to give
clear output to the creating process instead of creating only a debug
message in kernel log. The same function is used for the creation while
module load, so keep the old message, although it should never be thrown
while load, because the module controls all mac addresses.

Signed-off-by: Benjamin Beichler <benjamin.beichler@uni-rostock.de>
[remove message, add missing braces]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c