projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7433a49
)
ath6kl: use max_t() in ath6kl_cfg80211_connect()
author
Kalle Valo
<kvalo@qca.qualcomm.com>
Mon, 12 Mar 2012 11:23:23 +0000
(13:23 +0200)
committer
Kalle 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
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath6kl/cfg80211.c
b/drivers/net/wireless/ath/ath6kl/cfg80211.c
index 5ecc53af3ac6ae94528c8894047da82ac6e9d1ca..00d38952b5fb1d9d2f7aef30ae4b7fa87b5d4f03 100644
(file)
--- 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);