iwlwifi: use a macro for default probe length
authorLuciano Coelho <luciano.coelho@intel.com>
Mon, 12 Aug 2013 16:30:21 +0000 (19:30 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 16 Aug 2013 10:11:36 +0000 (12:11 +0200)
Instead of assigning the default max probe length to 200 in the main
code, create a macro for consistency and clarity.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/iwl-drv.c
drivers/net/wireless/iwlwifi/iwl-fw.h

index d0162d426f887b9949e97c1b3163490535f68482..e88397bd95ebaa9ac026d52a9b8edea092c5af3e 100644 (file)
@@ -843,7 +843,7 @@ static void iwl_req_fw_callback(const struct firmware *ucode_raw, void *context)
        int i;
        bool load_module = false;
 
-       fw->ucode_capa.max_probe_length = 200;
+       fw->ucode_capa.max_probe_length = IWL_DEFAULT_MAX_PROBE_LENGTH;
        fw->ucode_capa.standard_phy_calibration_size =
                        IWL_DEFAULT_STANDARD_PHY_CALIBRATE_TBL_SIZE;
 
index 1705d245dbe90f164f71bb97bf7f0add7a30304a..a1223680bc70d2f765e32180176ac7997884a3d7 100644 (file)
@@ -99,6 +99,9 @@ enum iwl_ucode_tlv_flag {
 #define IWL_MAX_STANDARD_PHY_CALIBRATE_TBL_SIZE                19
 #define IWL_MAX_PHY_CALIBRATE_TBL_SIZE                 253
 
+/* The default max probe length if not specified by the firmware file */
+#define IWL_DEFAULT_MAX_PROBE_LENGTH   200
+
 /**
  * enum iwl_ucode_type
  *