File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
drivers/net/wireless/intel/iwlwifi/mvm Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1275,6 +1275,7 @@ static bool iwl_mvm_can_enter_esr(struct iwl_mvm *mvm,
1275
1275
struct iwl_mvm_vif * mvmvif = iwl_mvm_vif_from_mac80211 (vif );
1276
1276
int primary_link = iwl_mvm_mld_get_primary_link (mvm , vif ,
1277
1277
desired_links );
1278
+ const struct wiphy_iftype_ext_capab * ext_capa ;
1278
1279
bool ret = true;
1279
1280
int link_id ;
1280
1281
@@ -1284,6 +1285,12 @@ static bool iwl_mvm_can_enter_esr(struct iwl_mvm *mvm,
1284
1285
if (!(vif -> cfg .eml_cap & IEEE80211_EML_CAP_EMLSR_SUPP ))
1285
1286
return false;
1286
1287
1288
+ ext_capa = cfg80211_get_iftype_ext_capa (mvm -> hw -> wiphy ,
1289
+ ieee80211_vif_type_p2p (vif ));
1290
+ if (!ext_capa ||
1291
+ !(ext_capa -> eml_capabilities & IEEE80211_EML_CAP_EMLSR_SUPP ))
1292
+ return false;
1293
+
1287
1294
for_each_set_bit (link_id , & desired_links , IEEE80211_MLD_MAX_NUM_LINKS ) {
1288
1295
struct ieee80211_bss_conf * link_conf =
1289
1296
link_conf_dereference_protected (vif , link_id );
You can’t perform that action at this time.
0 commit comments