OSDN Git Service

mt76: mt7915: add more MIB registers
authorBen Greear <greearb@candelatech.com>
Wed, 4 Aug 2021 13:43:34 +0000 (06:43 -0700)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Oct 2021 08:36:44 +0000 (10:36 +0200)
commita90f2115c1a8577ac1ab80111ddd7261cff0a3d8
tree1f07ce81adc29e9c66be8542fd4ba6e635dec974
parent016f2040591f97ebb093d205f90fc02032f775c0
mt76: mt7915: add more MIB registers

Add register definitions and read & accumulate them in
the mib polling logic.  Note that some registers should not
be read since firmware is already reading them.  If driver
reads those, they will be cleared-on-read, and so the firmware
stats will be incorrect.

For these 'do-not-read' stats, add them to the registers definition
so that other developers can be aware of these constraints, but do
not actually read them in the driver.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h
drivers/net/wireless/mediatek/mt76/mt7915/regs.h