diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2019-06-27 11:44:49 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-06-27 13:58:13 +0300 |
commit | eda96044de274cbf7263834b5cecb51f1f7b0984 (patch) | |
tree | 5058ff56fcb099133a5bb1580c6a12810af88762 /drivers/net/wireless/mediatek | |
parent | 81ca02a17404755f4baed82be1fce4604a25848e (diff) | |
download | linux-eda96044de274cbf7263834b5cecb51f1f7b0984.tar.xz |
mt76: mt7615: fix sparse warnings: incorrect type in assignment (different base types)
Fix the following sparse warning in mt7615_mcu_bss_info_ext_header:
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c:728:30: sparse: sparse:
incorrect type in assignment (different base types)
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c:728:30: sparse:
expected restricted __le32 [usertype] mbss_tsf_offset
Reported-by: kbuild test robot <lkp@intel.com>
Fixes: 04b8e65922f6 ("mt76: add mac80211 driver for MT7615 PCIe-based chipsets")
Fixes: 7339fbc0caa5 ("mt7615: mcu: do not use function pointers whenever possible")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c index 836a329e65ab..8d01ee5df9a3 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c @@ -713,7 +713,7 @@ mt7615_mcu_bss_info_ext_header(struct mt7615_vif *mvif, u8 *data) /* SIFS 20us + 512 byte beacon tranmitted by 1Mbps (3906us) */ #define BCN_TX_ESTIMATE_TIME (4096 + 20) struct bss_info_ext_bss *hdr = (struct bss_info_ext_bss *)data; - int ext_bss_idx; + int ext_bss_idx, tsf_offset; ext_bss_idx = mvif->omac_idx - EXT_BSSID_START; if (ext_bss_idx < 0) @@ -721,7 +721,8 @@ mt7615_mcu_bss_info_ext_header(struct mt7615_vif *mvif, u8 *data) hdr->tag = cpu_to_le16(BSS_INFO_EXT_BSS); hdr->len = cpu_to_le16(sizeof(struct bss_info_ext_bss)); - hdr->mbss_tsf_offset = ext_bss_idx * BCN_TX_ESTIMATE_TIME; + tsf_offset = ext_bss_idx * BCN_TX_ESTIMATE_TIME; + hdr->mbss_tsf_offset = cpu_to_le32(tsf_offset); } int mt7615_mcu_set_bss_info(struct mt7615_dev *dev, |