diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index b6740c33b519..0e63cb70c713 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -235,12 +235,11 @@ static ssize_t iwl_dbgfs_sram_read(struct file *file, | |||
235 | 235 | ||
236 | /* default is to dump the entire data segment */ | 236 | /* default is to dump the entire data segment */ |
237 | if (!priv->dbgfs_sram_offset && !priv->dbgfs_sram_len) { | 237 | if (!priv->dbgfs_sram_offset && !priv->dbgfs_sram_len) { |
238 | struct iwl_nic *nic = nic(priv); | ||
239 | priv->dbgfs_sram_offset = 0x800000; | 238 | priv->dbgfs_sram_offset = 0x800000; |
240 | if (nic->shrd->ucode_type == IWL_UCODE_INIT) | 239 | if (priv->shrd->ucode_type == IWL_UCODE_INIT) |
241 | priv->dbgfs_sram_len = nic->fw.ucode_init.data.len; | 240 | priv->dbgfs_sram_len = priv->fw->ucode_init.data.len; |
242 | else | 241 | else |
243 | priv->dbgfs_sram_len = nic->fw.ucode_rt.data.len; | 242 | priv->dbgfs_sram_len = priv->fw->ucode_rt.data.len; |
244 | } | 243 | } |
245 | len = priv->dbgfs_sram_len; | 244 | len = priv->dbgfs_sram_len; |
246 | 245 | ||
@@ -343,7 +342,7 @@ static ssize_t iwl_dbgfs_wowlan_sram_read(struct file *file, | |||
343 | 342 | ||
344 | return simple_read_from_buffer(user_buf, count, ppos, | 343 | return simple_read_from_buffer(user_buf, count, ppos, |
345 | priv->wowlan_sram, | 344 | priv->wowlan_sram, |
346 | nic(priv)->fw.ucode_wowlan.data.len); | 345 | priv->fw->ucode_wowlan.data.len); |
347 | } | 346 | } |
348 | static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf, | 347 | static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf, |
349 | size_t count, loff_t *ppos) | 348 | size_t count, loff_t *ppos) |