]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iwlwifi: use watchdog timeout from hw_params
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Mar 2012 21:30:54 +0000 (13:30 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Mar 2012 18:55:44 +0000 (13:55 -0500)
This is the version that can be modified, the
config params should be read-only.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-core.c
drivers/net/wireless/iwlwifi/iwl-debugfs.c

index 25fdb805abc3ff52eb5c9102780cb9315e911118..2422eef6d15f7c8b7a5a99938f3f22fb3a463a3b 100644 (file)
@@ -1340,7 +1340,7 @@ void iwl_bg_watchdog(unsigned long data)
        if (iwl_is_rfkill(priv->shrd))
                return;
 
-       timeout = cfg(priv)->base_params->wd_timeout;
+       timeout = hw_params(priv).wd_timeout;
        if (timeout == 0)
                return;
 
@@ -1355,7 +1355,7 @@ void iwl_bg_watchdog(unsigned long data)
 
 void iwl_setup_watchdog(struct iwl_priv *priv)
 {
-       unsigned int timeout = cfg(priv)->base_params->wd_timeout;
+       unsigned int timeout = hw_params(priv).wd_timeout;
 
        if (!iwlagn_mod_params.wd_disable) {
                /* use system default */
index ade4134fc1ec3f403379d4fab52a5e0d673e9977..116c7851f3b1607512d94a0c3a72c85fd72fa741 100644 (file)
@@ -2368,7 +2368,7 @@ static ssize_t iwl_dbgfs_wd_timeout_write(struct file *file,
        if (timeout < 0 || timeout > IWL_MAX_WD_TIMEOUT)
                timeout = IWL_DEF_WD_TIMEOUT;
 
-       cfg(priv)->base_params->wd_timeout = timeout;
+       hw_params(priv).wd_timeout = timeout;
        iwl_setup_watchdog(priv);
        return count;
 }