From: Kalle Valo Date: Mon, 12 Mar 2012 11:23:23 +0000 (+0200) Subject: ath6kl: use max_t() in ath6kl_cfg80211_connect() X-Git-Tag: MMI-PSA29.97-13-9~16302^2~57^2~287^2~78 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b5283871ceced6e50728c51e4de811d1deadc962;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index 5ecc53af3ac6..00d38952b5fb 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);