@@ -2166,8 +2166,7 @@ static int set_power_mgmt(struct wiphy *wiphy, struct net_device *dev,
2166
2166
" Power save Enabled= %d , TimeOut = %d\n" , enabled ,
2167
2167
timeout );
2168
2168
2169
- if (vif -> wilc -> enable_ps )
2170
- wilc_set_power_mgmt (vif , enabled , timeout );
2169
+ wilc_set_power_mgmt (vif , enabled , timeout );
2171
2170
2172
2171
return 0 ;
2173
2172
}
@@ -2219,7 +2218,6 @@ static int change_virtual_intf(struct wiphy *wiphy, struct net_device *dev,
2219
2218
memset (priv -> assoc_stainfo .sta_associated_bss , 0 ,
2220
2219
MAX_NUM_STA * ETH_ALEN );
2221
2220
2222
- wl -> enable_ps = true;
2223
2221
wilc_set_power_mgmt (vif_1 , 1 , 0 );
2224
2222
wilc_set_power_mgmt (vif_2 , 1 , 0 );
2225
2223
break ;
@@ -2232,7 +2230,6 @@ static int change_virtual_intf(struct wiphy *wiphy, struct net_device *dev,
2232
2230
priv -> wdev -> iftype = type ;
2233
2231
vif -> monitor_flag = 0 ;
2234
2232
vif -> iftype = CLIENT_MODE ;
2235
- wl -> enable_ps = false;
2236
2233
wilc_set_wfi_drv_handler (vif , wilc_get_vif_idx (vif ),
2237
2234
STATION_MODE , vif -> ifc_id , false);
2238
2235
wilc_set_operation_mode (vif , STATION_MODE );
@@ -2247,7 +2244,6 @@ static int change_virtual_intf(struct wiphy *wiphy, struct net_device *dev,
2247
2244
dev -> ieee80211_ptr -> iftype = type ;
2248
2245
priv -> wdev -> iftype = type ;
2249
2246
vif -> iftype = AP_MODE ;
2250
- wl -> enable_ps = false;
2251
2247
if (wl -> initialized ) {
2252
2248
wilc_set_wfi_drv_handler (vif , wilc_get_vif_idx (vif ),
2253
2249
AP_MODE , vif -> ifc_id , false);
@@ -2271,7 +2267,6 @@ static int change_virtual_intf(struct wiphy *wiphy, struct net_device *dev,
2271
2267
wilc_set_wfi_drv_handler (vif , wilc_get_vif_idx (vif ),
2272
2268
AP_MODE , vif -> ifc_id , false);
2273
2269
wilc_set_operation_mode (vif , AP_MODE );
2274
- wl -> enable_ps = false;
2275
2270
wilc_set_power_mgmt (vif_1 , 0 , 0 );
2276
2271
wilc_set_power_mgmt (vif_2 , 0 , 0 );
2277
2272
break ;
@@ -2282,7 +2277,6 @@ static int change_virtual_intf(struct wiphy *wiphy, struct net_device *dev,
2282
2277
dev -> type = ARPHRD_IEEE80211_RADIOTAP ;
2283
2278
priv -> wdev -> iftype = type ;
2284
2279
vif -> iftype = MONITOR_MODE ;
2285
- wl -> enable_ps = false;
2286
2280
if (wl -> initialized ) {
2287
2281
wilc_set_wfi_drv_handler (vif , wilc_get_vif_idx (vif ),
2288
2282
MONITOR_MODE , vif -> ifc_id ,
0 commit comments