summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2012-03-12 13:23:23 +0200
committerKalle Valo <kvalo@qca.qualcomm.com>2012-03-13 14:18:34 +0200
commitb5283871ceced6e50728c51e4de811d1deadc962 (patch)
tree4e042de83fb8caa76a2006ad2771280a4a658b53
parent7433a49010fbb637de6ce14080fd89067156ccb7 (diff)
downloadop-kernel-dev-b5283871ceced6e50728c51e4de811d1deadc962.zip
op-kernel-dev-b5283871ceced6e50728c51e4de811d1deadc962.tar.gz
ath6kl: use max_t() in ath6kl_cfg80211_connect()
ath6kl/cfg80211.c:589: WARNING: max() should probably be max_t(u16, vif->listen_intvl_t, ATH6KL_MAX_WOW_LISTEN_INTL) Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r--drivers/net/wireless/ath/ath6kl/cfg80211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c
index 5ecc53a..00d3895 100644
--- a/drivers/net/wireless/ath/ath6kl/cfg80211.c
+++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
@@ -586,8 +586,8 @@ static int ath6kl_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev,
vif->reconnect_flag = 0;
if (vif->nw_type == INFRA_NETWORK) {
- interval = max(vif->listen_intvl_t,
- (u16) ATH6KL_MAX_WOW_LISTEN_INTL);
+ interval = max_t(u16, vif->listen_intvl_t,
+ ATH6KL_MAX_WOW_LISTEN_INTL);
status = ath6kl_wmi_listeninterval_cmd(ar->wmi, vif->fw_vif_idx,
interval,
0);
OpenPOWER on IntegriCloud