diff mbox series

[6/8] ath11k: avoid use of magic numbers

Message ID 1561376969-3999-6-git-send-email-mpubbise@codeaurora.org (mailing list archive)
State Accepted
Commit ee997259ac6b563538fea30752298c70764b7aa1
Delegated to: Kalle Valo
Headers show
Series [1/8] ath11k: correct prefix for public functions in mac.c | expand

Commit Message

Manikanta Pubbisetty June 24, 2019, 11:49 a.m. UTC
Use macros where ever necessary, replace magic numbers with appropriate
macros in mac.c file.

Signed-off-by: Manikanta Pubbisetty <mpubbise@codeaurora.org>
---
 drivers/net/wireless/ath/ath11k/mac.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c
index f878479..2fd1bfc 100644
--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -167,6 +167,8 @@  const struct htt_rx_ring_tlv_filter ath11k_mac_mon_status_filter_default = {
 #define ath11k_a_rates (ath11k_legacy_rates + 4)
 #define ath11k_a_rates_size (ARRAY_SIZE(ath11k_legacy_rates) - 4)
 
+#define ATH11K_MAC_SCAN_TIMEOUT_MSECS 200 /* in msecs */
+
 static const u32 ath11k_smps_map[] = {
 	[WLAN_HT_CAP_SM_PS_STATIC] = WMI_PEER_SMPS_STATIC,
 	[WLAN_HT_CAP_SM_PS_DYNAMIC] = WMI_PEER_SMPS_DYNAMIC,
@@ -2027,7 +2029,7 @@  static int ath11k_mac_op_hw_scan(struct ieee80211_hw *hw,
 	/* Add a 200ms margin to account for event/command processing */
 	ieee80211_queue_delayed_work(ar->hw, &ar->scan.timeout,
 				     msecs_to_jiffies(arg.max_scan_time +
-						      200));
+						      ATH11K_MAC_SCAN_TIMEOUT_MSECS));
 
 exit:
 	if (req->ie_len)