diff options
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 5e09d354c5a5..4977967c8b00 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -1057,7 +1057,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) | |||
1057 | /* add one default STA interface if supported */ | 1057 | /* add one default STA interface if supported */ |
1058 | if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_STATION) && | 1058 | if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_STATION) && |
1059 | !(hw->flags & IEEE80211_HW_NO_AUTO_VIF)) { | 1059 | !(hw->flags & IEEE80211_HW_NO_AUTO_VIF)) { |
1060 | result = ieee80211_if_add(local, "wlan%d", NULL, | 1060 | result = ieee80211_if_add(local, "wlan%d", NET_NAME_ENUM, NULL, |
1061 | NL80211_IFTYPE_STATION, NULL); | 1061 | NL80211_IFTYPE_STATION, NULL); |
1062 | if (result) | 1062 | if (result) |
1063 | wiphy_warn(local->hw.wiphy, | 1063 | wiphy_warn(local->hw.wiphy, |
@@ -1201,8 +1201,6 @@ void ieee80211_free_hw(struct ieee80211_hw *hw) | |||
1201 | ieee80211_free_ack_frame, NULL); | 1201 | ieee80211_free_ack_frame, NULL); |
1202 | idr_destroy(&local->ack_status_frames); | 1202 | idr_destroy(&local->ack_status_frames); |
1203 | 1203 | ||
1204 | kfree(rcu_access_pointer(local->tx_latency)); | ||
1205 | |||
1206 | sta_info_stop(local); | 1204 | sta_info_stop(local); |
1207 | 1205 | ||
1208 | wiphy_free(local->hw.wiphy); | 1206 | wiphy_free(local->hw.wiphy); |