diff options
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 298ba79fc51b..92b486d46eb9 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -601,6 +601,18 @@ static int mac80211_hwsim_add_interface(struct ieee80211_hw *hw, | |||
601 | } | 601 | } |
602 | 602 | ||
603 | 603 | ||
604 | static int mac80211_hwsim_change_interface(struct ieee80211_hw *hw, | ||
605 | struct ieee80211_vif *vif, | ||
606 | enum nl80211_iftype newtype) | ||
607 | { | ||
608 | wiphy_debug(hw->wiphy, | ||
609 | "%s (old type=%d, new type=%d, mac_addr=%pM)\n", | ||
610 | __func__, vif->type, newtype, vif->addr); | ||
611 | hwsim_check_magic(vif); | ||
612 | |||
613 | return 0; | ||
614 | } | ||
615 | |||
604 | static void mac80211_hwsim_remove_interface( | 616 | static void mac80211_hwsim_remove_interface( |
605 | struct ieee80211_hw *hw, struct ieee80211_vif *vif) | 617 | struct ieee80211_hw *hw, struct ieee80211_vif *vif) |
606 | { | 618 | { |
@@ -1027,6 +1039,7 @@ static struct ieee80211_ops mac80211_hwsim_ops = | |||
1027 | .start = mac80211_hwsim_start, | 1039 | .start = mac80211_hwsim_start, |
1028 | .stop = mac80211_hwsim_stop, | 1040 | .stop = mac80211_hwsim_stop, |
1029 | .add_interface = mac80211_hwsim_add_interface, | 1041 | .add_interface = mac80211_hwsim_add_interface, |
1042 | .change_interface = mac80211_hwsim_change_interface, | ||
1030 | .remove_interface = mac80211_hwsim_remove_interface, | 1043 | .remove_interface = mac80211_hwsim_remove_interface, |
1031 | .config = mac80211_hwsim_config, | 1044 | .config = mac80211_hwsim_config, |
1032 | .configure_filter = mac80211_hwsim_configure_filter, | 1045 | .configure_filter = mac80211_hwsim_configure_filter, |