ath6kl: use max_t() in ath6kl_cfg80211_connect()
authorKalle Valo <kvalo@qca.qualcomm.com>
Mon, 12 Mar 2012 11:23:23 +0000 (13:23 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 13 Mar 2012 12:18:34 +0000 (14:18 +0200)
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>
drivers/net/wireless/ath/ath6kl/cfg80211.c

index 5ecc53af3ac6ae94528c8894047da82ac6e9d1ca..00d38952b5fb1d9d2f7aef30ae4b7fa87b5d4f03 100644 (file)
@@ -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);