net80211: Drain ageq before cleaning it up.
The comment above ieee80211_ageq_cleanup specifically notes that the queue is assumed to be empty, and in order to make it so, ieee80211_ageq_drain must be used. Submitted by: Augustin Cavalier <waddlesplash@gmail.com> Obtained from: Haiku (dffc3e235360cd7b71261239ee8507b7d62a1471) MFC after: 1 week
This commit is contained in:
parent
060b3e4ff1
commit
58a7c4bfcf
@ -137,6 +137,7 @@ ieee80211_node_detach(struct ieee80211com *ic)
|
||||
|
||||
callout_drain(&ic->ic_inact);
|
||||
ieee80211_node_table_cleanup(&ic->ic_sta);
|
||||
ieee80211_ageq_drain(&ic->ic_stageq);
|
||||
ieee80211_ageq_cleanup(&ic->ic_stageq);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user