From: Johannes Berg Date: Wed, 28 Mar 2012 19:02:46 +0000 (+0200) Subject: mac80211: fix association beacon wait timeout X-Git-Tag: v3.4-rc3~32^2^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f9768a5d262d01d317b2a03933db3d5082fcb68;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git mac80211: fix association beacon wait timeout The TU_TO_EXP_TIME() macro already includes the "jiffies +" piece of the calculation, so don't add jiffies again. Reported-by: Oliver Hartkopp Signed-off-by: Johannes Berg Tested-by: Oliver Hartkopp Signed-off-by: John W. Linville --- diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 576fb25..f76da5b 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -3387,8 +3387,7 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, */ printk(KERN_DEBUG "%s: waiting for beacon from %pM\n", sdata->name, ifmgd->bssid); - assoc_data->timeout = jiffies + - TU_TO_EXP_TIME(req->bss->beacon_interval); + assoc_data->timeout = TU_TO_EXP_TIME(req->bss->beacon_interval); } else { assoc_data->have_beacon = true; assoc_data->sent_assoc = false;