Skip to content

Commit

Permalink
mac80211: Call driver commands after drv_start in mac80211 restart code
Browse files Browse the repository at this point in the history
Ideally, hardware/firmware initialization is complete after the
drv_start routine. In mac80211 restart code (ieee80211_reconfig),
defer calling the driver commands i.e. setup fragmentation
threshold, rts threshold and coverage class till drv_start
routine is called.

Signed-off-by: Nishant Sarmukadam <[email protected]>
Signed-off-by: Yogesh Ashok Powar <[email protected]>

v2: Removed extra blank line added.
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
yogeshpowar authored and linvjw committed Jan 4, 2012
1 parent 98f0a5e commit 7f28197
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions net/mac80211/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1142,16 +1142,6 @@ int ieee80211_reconfig(struct ieee80211_local *local)
*/
}
#endif

/* setup fragmentation threshold */
drv_set_frag_threshold(local, hw->wiphy->frag_threshold);

/* setup RTS threshold */
drv_set_rts_threshold(local, hw->wiphy->rts_threshold);

/* reset coverage class */
drv_set_coverage_class(local, hw->wiphy->coverage_class);

/* everything else happens only if HW was up & running */
if (!local->open_count)
goto wake_up;
Expand All @@ -1170,6 +1160,15 @@ int ieee80211_reconfig(struct ieee80211_local *local)
return res;
}

/* setup fragmentation threshold */
drv_set_frag_threshold(local, hw->wiphy->frag_threshold);

/* setup RTS threshold */
drv_set_rts_threshold(local, hw->wiphy->rts_threshold);

/* reset coverage class */
drv_set_coverage_class(local, hw->wiphy->coverage_class);

ieee80211_led_radio(local, true);
ieee80211_mod_tpt_led_trig(local,
IEEE80211_TPT_LEDTRIG_FL_RADIO, 0);
Expand Down

0 comments on commit 7f28197

Please sign in to comment.