Commit Graph

17 Commits

Author SHA1 Message Date
Santosh Anbu
ecc59f3524 qca-wifi: Increase restart request timer to 20s
In independent repeater scenario where STA vdev takes longer for
auth/assoc, and the AP vdevs are waiting on restart request may lead
to restart timeout.

Hence increase restart timeout to 20s which is higher than auth/assoc
timeout.

Change-Id: I5d2a0859e368feda4e1c6d3824eefdbc248b9bac
2020-10-31 01:45:16 -07:00
Santosh Anbu
f434bda1f6 qca-wifi: Activate deferred start send to FW
Start cmd send to FW is deferred when restart is in progress and
activated when restart is sent to FW.
There can be scenario where this restart is cancelled if the VDEV
is brought down as part of STOP cmd, during which the deferred start
cmd is not activated.

Add change to activate the deferred start on cancellation of multi
vdev restart

Change-Id: Ie202454f67943761219933be5b91a28ecba15c13
2020-08-25 08:56:48 -07:00
Himanshu Batra
c0960491d8 qca-wifi: Add print before clearing MVR pdev flag
Add print before clearing MVR pdev flag

Change-Id: I28ff2747874f95aaa0a9b5b1e025c23603354de0
CRs-Fixed: 2751336
2020-08-12 18:45:24 +05:30
Srinivas Pitla
a985c9974e qca-wifi: Fix channel sync issue in RESTART sequence
If START request is deferred due to RESTART pending logic, in few cases
it is leading to configuring two channels to FW.

This change checks desired channel of START req deferred VDEVs and updates
the desired channel with RESTART VDEV's desired channel

Change-Id: Ic69c10c08fd4d83aafcab97a71ce906564ab51f6
CRs-Fixed: 2713931
2020-07-28 14:59:55 -07:00
Santosh Anbu
37f84d48a4 qca-wifi: Define restart bitmap using qdf_bitmap
Add change to define restart bitmap using the generalized bitmap
declaration. Also use generalized function to check if any of the
bits are set in the bitmap.

Change-Id: I2c14a43982eb6e7cb5965253633ac00b357314e1
2020-05-20 14:54:01 +05:30
Santosh Anbu
577e6ed419 qca-wifi: Define restart bitmap using qdf_bitmap
Add change to define restart bitmap using the generalized bitmap
declaration. Also use generalized function to check if any of the
bits are set in the bitmap.

Change-Id: Ice0682ed7a59de962e9e46cf598643139c7c2313
2020-05-08 15:05:31 +05:30
Jeevan Kukkalli
ca2eea84a4 qca-wifi: Revert "qca-wifi: Handle multivdev restart request failure"
This reverts commit 45f510a90868226282a1a5cf5e2193a00ab8ff13.

Change-Id: I56d897856c4b71f73686fb038e35229a864f4285
2020-03-03 20:30:56 +05:30
Santosh Anbu
eb69985553 qca-wifi: Handle multivdev restart request failure
When multivdev restart request fails due to any reason, the
same is not notified to the vdev state machine. Due to VDEV
SM is stuck in restart state indefinitely.

Handle multivdev restart request failure by dispatching
RESTART_REQ_FAIL event.

Change-Id: I1cdbcf8efb5cd51e803cef4a8980d1276c410e13
CRs-Fixed: 2622197
2020-02-21 10:38:07 +05:30
Himanshu Batra
a24e7b7d12 qca-wifi: Add multivdev restart wait timeout
In the current implementaion, if multivdev restart req is not sent
due to error cases, then the multivdev restart timer gets restarted
after every timeout and the vdev sm is stuck in same state.
Add multivdev restart timeout wait counter and assert after the wait
timeout expires.

Change-Id: I5e249583e309660281b4a9cd7253b0731c5483cd
CRs-Fixed: 2621230
2020-02-17 12:30:12 +05:30
Priyadarshnee S
0beec74ee3 Revert "qca-wifi: Remove duplicate invoke of restart clear API"
This reverts commit 93fd212313864b5a2e693cefadc0b48763d522af.

CRs-Fixed: 2604433
Change-Id: I0ddf7971c1438650f28a0e0bf1d1f3ffb4aa9bc1
2020-01-25 21:30:00 +05:30
Srinivas Pitla
aa231bd28c qca-wifi: Remove duplicate invoke of restart clear API
On sending STOP req, RESTART pending, RESTART send flags are being cleared.
This is already being done before moving out of RESTART_PROGRESS sub state,
so avoiding it.

Change-Id: If8b358eb83571e11d6e0d3bcbedcf833894bf0d6
CRs-Fixed: 2578106
2019-12-06 10:07:04 -08:00
Santosh Anbu
4fde2e5169 qca-wifi: Update pdev restart bmap from restart send bitmap
Add change to copy the contents of multivdev restart send bitmap
to the pdev restart attribute holder which will be reset when all
the vdevs of the pdev are in the UP state

Change-Id: Ieef13fd5b5db25ddd2b8736c9d01786c537c3483
CRs-Fixed: 2492538
2019-07-19 16:20:29 +05:30
Srinivas Pitla
5570c7b4cb qca-wifi: Block stop request till restart response is received
Currently, for restart response cases, if Restart is not in progress and if
stop is issued, VDEV SM is allowing Stop request to send to FW.

This fix would prevent such cases.

Change-Id: I0d4d74c5eb2a9c9bbb588f7114fbbd5611c37cd5
CRs-Fixed: 2400987
2019-03-28 01:57:12 -07:00
Srinivas Pitla
2ea53466ff qca-wifi: Address RDKB compilation issue
This change adds braces to fix compilation error for RDKB issue

Change-Id: Ie6943e527d5e2b9b60c4d83d287f0b50fa489374
CRs-Fixed: 2400987
2019-03-14 19:24:29 -07:00
Srinivas Pitla
0d598a6dc0 qca-wifi: Add flag for Multi VDEV restart synchronization
In current code, channel number is checked to enable multivdev restart
synchronization, this assumption is not valid as channel width change
can also be requested.

To fix this, used a flag to enable multivdev restart synchronization.

Change-Id: I30b766d4430e3ce98de29d6194dc43cc42bbf0f6
CRs-Fixed: 2400987
2019-03-02 19:46:39 -08:00
Srinivas Pitla
c68e9fb218 qca-wifi: Remove QDF_BUG on channel check failure
This change removes QDF_BUG if channel match fails with other vdev,
prints would help to debug further on any issue.

Change-Id: I9566fe699d6124542dbb3075e470c887de1a612a
CRs-Fixed: 2391464
2019-02-01 22:49:25 +05:30
Srinivas Pitla
77752e288e qca-wifi: VDEV SM action implementation
Few trivial SM actions are being moved to converged code

Change-Id: I60c4bedf072d9cddaf872e9c3ea9364b70c65b6d
CRs-Fixed: 2307722
2019-01-17 13:37:04 +05:30