@@ -1761,6 +1761,7 @@ static int change_virtual_intf(struct wiphy *wiphy, struct net_device *dev,
1761
1761
if (vif -> iftype == WILC_AP_MODE || vif -> iftype == WILC_GO_MODE )
1762
1762
wilc_wfi_deinit_mon_interface (wl , true);
1763
1763
vif -> iftype = WILC_STATION_MODE ;
1764
+
1764
1765
if (wl -> initialized )
1765
1766
wilc_set_operation_mode (vif , wilc_get_vif_idx (vif ),
1766
1767
WILC_STATION_MODE , vif -> idx );
@@ -1777,6 +1778,7 @@ static int change_virtual_intf(struct wiphy *wiphy, struct net_device *dev,
1777
1778
priv -> wdev .iftype = type ;
1778
1779
vif -> monitor_flag = 0 ;
1779
1780
vif -> iftype = WILC_CLIENT_MODE ;
1781
+
1780
1782
if (wl -> initialized )
1781
1783
wilc_set_operation_mode (vif , wilc_get_vif_idx (vif ),
1782
1784
WILC_STATION_MODE , vif -> idx );
@@ -1788,6 +1790,7 @@ static int change_virtual_intf(struct wiphy *wiphy, struct net_device *dev,
1788
1790
dev -> ieee80211_ptr -> iftype = type ;
1789
1791
priv -> wdev .iftype = type ;
1790
1792
vif -> iftype = WILC_AP_MODE ;
1793
+
1791
1794
if (wl -> initialized )
1792
1795
wilc_set_operation_mode (vif , wilc_get_vif_idx (vif ),
1793
1796
WILC_AP_MODE , vif -> idx );
@@ -1801,6 +1804,7 @@ static int change_virtual_intf(struct wiphy *wiphy, struct net_device *dev,
1801
1804
dev -> ieee80211_ptr -> iftype = type ;
1802
1805
priv -> wdev .iftype = type ;
1803
1806
vif -> iftype = WILC_GO_MODE ;
1807
+
1804
1808
if (wl -> initialized )
1805
1809
wilc_set_operation_mode (vif , wilc_get_vif_idx (vif ),
1806
1810
WILC_AP_MODE , vif -> idx );
0 commit comments