OSDN Git Service

mt76: mt7921: update statistic in active mode only
authorDeren Wu <deren.wu@mediatek.com>
Thu, 27 May 2021 17:05:33 +0000 (01:05 +0800)
committerFelix Fietkau <nbd@nbd.name>
Sat, 19 Jun 2021 07:22:47 +0000 (09:22 +0200)
commite3fd9934cf6e22c30e843d1902695b2379318be0
tree54896ad1fd1085a74157953f6b6ba4c152841228
parent3cce2b98e0241ff238e25eca1dbb480534a7695a
mt76: mt7921: update statistic in active mode only

wakeup chip every 250ms may cause huge power consumption

try to update statistic counter only if in active status only,
and it would lead fewer power cost

Signed-off-by: Deren Wu <deren.wu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/mac.c