Skip to content

Commit

Permalink
ath6kl: use max_t() in ath6kl_cfg80211_connect()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kalle Valo committed Mar 13, 2012
1 parent 7433a49 commit b528387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/ath/ath6kl/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b528387

Please sign in to comment.