Skip to content

Commit

Permalink
mesh: use set_bit() to set MESH_WORK_HOUSEKEEPING.
Browse files Browse the repository at this point in the history
This makes the mesh housekeeping timer work properly on big endian
systems.

Signed-off-by: Rui Paulo <rpaulo@gmail.com>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Rui Paulo authored and John W. Linville committed Oct 27, 2009
1 parent 68676df commit 6b9ac44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/mac80211/mesh.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static void ieee80211_mesh_housekeeping_timer(unsigned long data)
struct ieee80211_local *local = sdata->local;
struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh;

ifmsh->wrkq_flags |= MESH_WORK_HOUSEKEEPING;
set_bit(MESH_WORK_HOUSEKEEPING, &ifmsh->wrkq_flags);

if (local->quiescing) {
set_bit(TMR_RUNNING_HK, &ifmsh->timers_running);
Expand Down Expand Up @@ -480,7 +480,7 @@ void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata)
struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh;
struct ieee80211_local *local = sdata->local;

ifmsh->wrkq_flags |= MESH_WORK_HOUSEKEEPING;
set_bit(MESH_WORK_HOUSEKEEPING, &ifmsh->wrkq_flags);
ieee80211_queue_work(&local->hw, &ifmsh->work);
sdata->vif.bss_conf.beacon_int = MESH_DEFAULT_BEACON_INTERVAL;
ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON |
Expand Down

0 comments on commit 6b9ac44

Please sign in to comment.