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)
commit301b04040c3ea2512b8936f419efbbaef2645ccb
treea4eb8e44957bf26ccc96164fa2f1459f03f8920d
parentcb1a5bae568450b96c6828f235589cb42ce1dc81
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