Commit 6c7c4cbfd5f59c04a40af67ad72d14e19215ef36

Authored by Thomas Pedersen
Committed by Johannes Berg
1 parent ac49e1a896

mac80211: initialize power mode for mesh STAs

Previously the default mesh STA nonpeer power mode was
UNKNOWN (0) make the default mesh STA power mode ACTIVE,
to prevent unnecessary  frame buffering while peering is
not yet complete. Fixes a panic in ath9k_htc when adding
stations from userspace, and mcast buffered frames are
later released.

Thanks to Bob Copeland for his help debugging this.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

net/mac80211/sta_info.c
... ... @@ -347,6 +347,7 @@
347 347 if (ieee80211_vif_is_mesh(&sdata->vif) &&
348 348 !sdata->u.mesh.user_mpm)
349 349 init_timer(&sta->plink_timer);
  350 + sta->nonpeer_pm = NL80211_MESH_POWER_ACTIVE;
350 351 #endif
351 352  
352 353 memcpy(sta->sta.addr, addr, ETH_ALEN);