Skip to content

Commit 9c8928f

Browse files
committed
iwlwifi: dvm: run INIT firmware again upon .start()
The assumption before this patch was that we don't need to run again the INIT firmware after the system booted. The INIT firmware runs calibrations which impact the physical layer's behavior. Users reported that it may be helpful to run these calibrations again every time the interface is brought up. The penatly is minimal, since the calibrations run fast. This fixes: https://bugzilla.kernel.org/show_bug.cgi?id=94341 CC: <[email protected]> Signed-off-by: Emmanuel Grumbach <[email protected]>
1 parent 060b446 commit 9c8928f

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

drivers/net/wireless/iwlwifi/dvm/dev.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,6 @@ struct iwl_priv {
708708
unsigned long reload_jiffies;
709709
int reload_count;
710710
bool ucode_loaded;
711-
bool init_ucode_run; /* Don't run init uCode again */
712711

713712
u8 plcp_delta_threshold;
714713

drivers/net/wireless/iwlwifi/dvm/ucode.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,6 @@ int iwl_run_init_ucode(struct iwl_priv *priv)
418418
if (!priv->fw->img[IWL_UCODE_INIT].sec[0].len)
419419
return 0;
420420

421-
if (priv->init_ucode_run)
422-
return 0;
423-
424421
iwl_init_notification_wait(&priv->notif_wait, &calib_wait,
425422
calib_complete, ARRAY_SIZE(calib_complete),
426423
iwlagn_wait_calib, priv);
@@ -440,8 +437,6 @@ int iwl_run_init_ucode(struct iwl_priv *priv)
440437
*/
441438
ret = iwl_wait_notification(&priv->notif_wait, &calib_wait,
442439
UCODE_CALIB_TIMEOUT);
443-
if (!ret)
444-
priv->init_ucode_run = true;
445440

446441
goto out;
447442

0 commit comments

Comments
 (0)