wifi: mt76: mt7921s: fix a potential firmware freeze during startup

The maximum command quota of the firmware may be exceeded because the
command to retrieve the quota setting has not been taken into account.

This patch considers not only the quota usage of the command retrieving
quota settings but also limits the total quota usage.

Signed-off-by: Leon Yen <[email protected]>
Signed-off-by: Ming Yen Hsieh <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Leon Yen
2024-09-27 08:11:07 +02:00
committed by Felix Fietkau
parent 5ba4981f8b
commit dc32780c7f
3 changed files with 9 additions and 1 deletions
+1
View File
@@ -641,6 +641,7 @@ struct mt76_sdio {
u8 hw_ver;
wait_queue_head_t wait;
int pse_mcu_quota_max;
struct {
int pse_data_quota;
int ple_data_quota;