mt76: mt7615: load ROM patch before checking patch semaphore status
authorFelix Fietkau <nbd@nbd.name>
Fri, 16 Apr 2021 08:24:46 +0000 (10:24 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 21 Apr 2021 09:42:22 +0000 (11:42 +0200)
commit4efcfd5c36bd0d7c0f62713216a2291562eccfaa
tree9185696c8a1d0933ea5cfa20cb1c617270acdbfa
parent5c7d374444afdeb9dd534a37c4f6c13af032da0c
mt76: mt7615: load ROM patch before checking patch semaphore status

For MT7663, the availability of the patch files is used to detect, which
corresponding firmware is going to be used (AP firmware or STA offload
firmware). If the ROM patch was already applied, it could attempt to
load the wrong firmware (without considering the alternative).

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c