wifi: mt76: mt7925: add MCU command error handling #1031
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds error handling for critical MCU commands in the MT7925 driver.
Problem
Several MCU commands in the MT7925 driver ignore return values, which could leave
the driver and firmware in inconsistent states when commands fail.
Changes
Patch 1: AMPDU MCU Error Handling
mt7925_mcu_uni_rx_ba()andmt7925_mcu_uni_tx_ba()Patch 2: Station Add BSS Info Error Handling
mt7925_mcu_add_bss_info()inmt7925_mac_link_sta_add()Patch 3: Key Setup BSS Info Error Handling
mt7925_mcu_add_bss_info()during cipher setupTesting
Tested on Framework Desktop (AMD Ryzen AI Max 300 Series) with MT7925 WiFi.
These fixes complement the mutex fixes in PR #1029 and NULL checks in PR #1030.
Related