diff options
| -rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 59c65c37bccd..03d7b1d360ae 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
| @@ -2180,20 +2180,14 @@ failure: | |||
| 2180 | 2180 | ||
| 2181 | static void hwsim_exit_netlink(void) | 2181 | static void hwsim_exit_netlink(void) |
| 2182 | { | 2182 | { |
| 2183 | int ret; | ||
| 2184 | |||
| 2185 | /* userspace test API hasn't been adjusted for multi-channel */ | 2183 | /* userspace test API hasn't been adjusted for multi-channel */ |
| 2186 | if (channels > 1) | 2184 | if (channels > 1) |
| 2187 | return; | 2185 | return; |
| 2188 | 2186 | ||
| 2189 | printk(KERN_INFO "mac80211_hwsim: closing netlink\n"); | ||
| 2190 | /* unregister the notifier */ | 2187 | /* unregister the notifier */ |
| 2191 | netlink_unregister_notifier(&hwsim_netlink_notifier); | 2188 | netlink_unregister_notifier(&hwsim_netlink_notifier); |
| 2192 | /* unregister the family */ | 2189 | /* unregister the family */ |
| 2193 | ret = genl_unregister_family(&hwsim_genl_family); | 2190 | genl_unregister_family(&hwsim_genl_family); |
| 2194 | if (ret) | ||
| 2195 | printk(KERN_DEBUG "mac80211_hwsim: " | ||
| 2196 | "unregister family %i\n", ret); | ||
| 2197 | } | 2191 | } |
| 2198 | 2192 | ||
| 2199 | static const struct ieee80211_iface_limit hwsim_if_limits[] = { | 2193 | static const struct ieee80211_iface_limit hwsim_if_limits[] = { |
