mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
LinuxKPI: 802.11 fix queue wait
We are using a bandaid to wait for queues after station creation looping and pausing. The abort condition was looping in the wrong direction so we were potentially waiting forever if queues never became ready. From initial user test data we also found that the wait time was too low in some cases so increase the length. Sponsored by: The FreeBSD Foundation MFC after: 3 days
This commit is contained in:
parent
cb65d4432a
commit
500be2e803
1 changed files with 2 additions and 2 deletions
|
|
@ -786,7 +786,7 @@ lkpi_sta_scan_to_auth(struct ieee80211vap *vap, enum ieee80211_state nstate, int
|
|||
{
|
||||
int i, count;
|
||||
|
||||
for (i = 3; i > 0; i++) {
|
||||
for (i = 3 * (hw->queues + 1); i > 0; i--) {
|
||||
struct lkpi_txq *ltxq;
|
||||
int tid;
|
||||
|
||||
|
|
@ -815,7 +815,7 @@ lkpi_sta_scan_to_auth(struct ieee80211vap *vap, enum ieee80211_state nstate, int
|
|||
ic_printf(vap->iv_ic, "%s: waiting for %d quuees "
|
||||
"to be allocated by driver\n", __func__, count);
|
||||
#endif
|
||||
DELAY(100);
|
||||
pause("lkpi80211txq", hz/10);
|
||||
}
|
||||
#ifdef LINUXKPI_DEBUG_80211
|
||||
if (count > 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue