iwlwifi: print opmode when firmware is loaded
authorJohannes Berg <johannes.berg@intel.com>
Tue, 26 Mar 2013 10:41:51 +0000 (11:41 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Apr 2013 20:49:51 +0000 (22:49 +0200)
Print the sub-driver (opmode, i.e. DVM or MVM) when the
firmware is loaded.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/iwl-drv.c

index 498300577ac03d1089174fc1a7f286b43bf4d961..b98873c70255d3171567ddb2863d745cb9dbf6a0 100644 (file)
@@ -912,8 +912,6 @@ static void iwl_req_fw_callback(const struct firmware *ucode_raw, void *context)
                }
        }
 
-       IWL_INFO(drv, "loaded firmware version %s", drv->fw.fw_version);
-
        /*
         * In mvm uCode there is no difference between data and instructions
         * sections.
@@ -970,6 +968,9 @@ static void iwl_req_fw_callback(const struct firmware *ucode_raw, void *context)
        else
                op = &iwlwifi_opmode_table[DVM_OP_MODE];
 
+       IWL_INFO(drv, "loaded firmware version %s op_mode %s\n",
+                drv->fw.fw_version, op->name);
+
        /* add this device to the list of devices using this op_mode */
        list_add_tail(&drv->list, &op->drv);