Skip to content

Commit f81aa83

Browse files
ilanpeer2Miriam-Rachel
authored andcommitted
wifi: iwlwifi: mld: Move regulatory domain initialization
The regulatory domain information was initialized every time the FW was loaded and the device was restarted. This was unnecessary and useless as at this stage the wiphy channels information was not setup yet so while the regulatory domain was set to the wiphy, the channel information was not updated. In case that a specific MCC was configured during FW initialization then following updates with this MCC are ignored, and thus the wiphy channels information is left with information not matching the regulatory domain. This commit moves the regulatory domain initialization to after the operational firmware is started, i.e., after the wiphy channels were configured and the regulatory information is needed. Signed-off-by: Ilan Peer <[email protected]> Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250604061200.f138a7382093.I2fd8b3e99be13c2687da483e2cb1311ffb4fbfce@changeid Signed-off-by: Miri Korenblit <[email protected]>
1 parent 847a4bf commit f81aa83

File tree

1 file changed

+4
-4
lines changed
  • drivers/net/wireless/intel/iwlwifi/mld

1 file changed

+4
-4
lines changed

drivers/net/wireless/intel/iwlwifi/mld/fw.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,6 @@ int iwl_mld_load_fw(struct iwl_mld *mld)
349349
if (ret)
350350
goto err;
351351

352-
ret = iwl_mld_init_mcc(mld);
353-
if (ret)
354-
goto err;
355-
356352
mld->fw_status.running = true;
357353

358354
return 0;
@@ -546,6 +542,10 @@ int iwl_mld_start_fw(struct iwl_mld *mld)
546542
if (ret)
547543
goto error;
548544

545+
ret = iwl_mld_init_mcc(mld);
546+
if (ret)
547+
goto error;
548+
549549
return 0;
550550

551551
error:

0 commit comments

Comments
 (0)