* [PATCH wireless-drivers] mt76: mt7615: fix max_nss in mt7615_eeprom_parse_hw_cap
@ 2020-02-07 10:29 Lorenzo Bianconi
2020-02-08 10:01 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Lorenzo Bianconi @ 2020-02-07 10:29 UTC (permalink / raw)
To: kvalo; +Cc: nbd, lorenzo.bianconi, linux-wireless, ryder.lee
Fix u8 cast reading max_nss from MT_TOP_STRAP_STA register in
mt7615_eeprom_parse_hw_cap routine
Fixes: acf5457fd99db ("mt76: mt7615: read {tx,rx} mask from eeprom")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c b/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c
index eccad4987ac8..17e277bf39e0 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c
@@ -92,8 +92,9 @@ static int mt7615_check_eeprom(struct mt76_dev *dev)
static void mt7615_eeprom_parse_hw_cap(struct mt7615_dev *dev)
{
- u8 val, *eeprom = dev->mt76.eeprom.data;
+ u8 *eeprom = dev->mt76.eeprom.data;
u8 tx_mask, rx_mask, max_nss;
+ u32 val;
val = FIELD_GET(MT_EE_NIC_WIFI_CONF_BAND_SEL,
eeprom[MT_EE_WIFI_CONF]);
--
2.21.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH wireless-drivers] mt76: mt7615: fix max_nss in mt7615_eeprom_parse_hw_cap
2020-02-07 10:29 [PATCH wireless-drivers] mt76: mt7615: fix max_nss in mt7615_eeprom_parse_hw_cap Lorenzo Bianconi
@ 2020-02-08 10:01 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2020-02-08 10:01 UTC (permalink / raw)
To: Lorenzo Bianconi; +Cc: nbd, lorenzo.bianconi, linux-wireless, ryder.lee
Lorenzo Bianconi <lorenzo@kernel.org> wrote:
> Fix u8 cast reading max_nss from MT_TOP_STRAP_STA register in
> mt7615_eeprom_parse_hw_cap routine
>
> Fixes: acf5457fd99db ("mt76: mt7615: read {tx,rx} mask from eeprom")
> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Patch applied to wireless-drivers.git, thanks.
d08f3010f4a3 mt76: mt7615: fix max_nss in mt7615_eeprom_parse_hw_cap
--
https://patchwork.kernel.org/patch/11370185/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-08 10:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-07 10:29 [PATCH wireless-drivers] mt76: mt7615: fix max_nss in mt7615_eeprom_parse_hw_cap Lorenzo Bianconi
2020-02-08 10:01 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).