mt76: mt7915: add sta_rec with EXTRA_INFO_NEW for the first time only
authorShayne Chen <shayne.chen@mediatek.com>
Wed, 22 Jun 2022 01:24:49 +0000 (09:24 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 11 Jul 2022 11:40:02 +0000 (13:40 +0200)
commit8e3e7567b8c1216c743a69a32e468f7c86b8643f
tree4ebfb0b914e5efe0bd158c87163c26821f272a5b
parent754f9ae80e4fc3a42cfb7e2c680fdf7710ff8273
mt76: mt7915: add sta_rec with EXTRA_INFO_NEW for the first time only

Set EXTRA_INFO_NEW for the first time only to prevent adding the same
starec entry, otherwise the entry might be removed in fw.

Reviewed-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/main.c
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c