Skip to content

Commit

Permalink
mac80211: fix CSA handling timer
Browse files Browse the repository at this point in the history
The time until the channel switch is in TU,
not in milliseconds, so use TU_TO_EXP_TIME()
to correctly program the timer.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Aug 20, 2012
1 parent 57eebdf commit 3049000
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,9 +813,8 @@ void ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata,
ieee80211_queue_work(&sdata->local->hw, &ifmgd->chswitch_work);
else
mod_timer(&ifmgd->chswitch_timer,
jiffies +
msecs_to_jiffies(sw_elem->count *
cbss->beacon_interval));
TU_TO_EXP_TIME(sw_elem->count *
cbss->beacon_interval));
}

static void ieee80211_handle_pwr_constr(struct ieee80211_sub_if_data *sdata,
Expand Down

0 comments on commit 3049000

Please sign in to comment.