|
@@ -1626,7 +1626,7 @@ void iwl_dump_nic_error_log(struct iwl_priv *priv)
|
|
|
struct iwl_error_event_table table;
|
|
|
|
|
|
base = priv->device_pointers.error_event_table;
|
|
|
- if (priv->ucode_type == UCODE_SUBTYPE_INIT) {
|
|
|
+ if (priv->ucode_type == IWL_UCODE_INIT) {
|
|
|
if (!base)
|
|
|
base = priv->_agn.init_errlog_ptr;
|
|
|
} else {
|
|
@@ -1638,7 +1638,7 @@ void iwl_dump_nic_error_log(struct iwl_priv *priv)
|
|
|
IWL_ERR(priv,
|
|
|
"Not valid error log pointer 0x%08X for %s uCode\n",
|
|
|
base,
|
|
|
- (priv->ucode_type == UCODE_SUBTYPE_INIT)
|
|
|
+ (priv->ucode_type == IWL_UCODE_INIT)
|
|
|
? "Init" : "RT");
|
|
|
return;
|
|
|
}
|
|
@@ -1702,7 +1702,7 @@ static int iwl_print_event_log(struct iwl_priv *priv, u32 start_idx,
|
|
|
return pos;
|
|
|
|
|
|
base = priv->device_pointers.log_event_table;
|
|
|
- if (priv->ucode_type == UCODE_SUBTYPE_INIT) {
|
|
|
+ if (priv->ucode_type == IWL_UCODE_INIT) {
|
|
|
if (!base)
|
|
|
base = priv->_agn.init_evtlog_ptr;
|
|
|
} else {
|
|
@@ -1815,7 +1815,7 @@ int iwl_dump_nic_event_log(struct iwl_priv *priv, bool full_log,
|
|
|
size_t bufsz = 0;
|
|
|
|
|
|
base = priv->device_pointers.log_event_table;
|
|
|
- if (priv->ucode_type == UCODE_SUBTYPE_INIT) {
|
|
|
+ if (priv->ucode_type == IWL_UCODE_INIT) {
|
|
|
logsize = priv->_agn.init_evtlog_size;
|
|
|
if (!base)
|
|
|
base = priv->_agn.init_evtlog_ptr;
|
|
@@ -1829,7 +1829,7 @@ int iwl_dump_nic_event_log(struct iwl_priv *priv, bool full_log,
|
|
|
IWL_ERR(priv,
|
|
|
"Invalid event log pointer 0x%08X for %s uCode\n",
|
|
|
base,
|
|
|
- (priv->ucode_type == UCODE_SUBTYPE_INIT)
|
|
|
+ (priv->ucode_type == IWL_UCODE_INIT)
|
|
|
? "Init" : "RT");
|
|
|
return -EINVAL;
|
|
|
}
|
|
@@ -2210,8 +2210,7 @@ static int __iwl_up(struct iwl_priv *priv)
|
|
|
|
|
|
ret = iwlagn_load_ucode_wait_alive(priv,
|
|
|
&priv->ucode_rt,
|
|
|
- UCODE_SUBTYPE_REGULAR,
|
|
|
- UCODE_SUBTYPE_REGULAR_NEW);
|
|
|
+ IWL_UCODE_REGULAR);
|
|
|
if (ret) {
|
|
|
IWL_ERR(priv, "Failed to start RT ucode: %d\n", ret);
|
|
|
goto error;
|
|
@@ -3448,8 +3447,6 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|
|
priv = hw->priv;
|
|
|
/* At this point both hw and priv are allocated. */
|
|
|
|
|
|
- priv->ucode_type = UCODE_SUBTYPE_NONE_LOADED;
|
|
|
-
|
|
|
/*
|
|
|
* The default context is always valid,
|
|
|
* more may be discovered when firmware
|