[][mac80211][wifi6][mt76][Fix crash caused by per-BSS counter updating]

[Description]
Fix kernel crash issue caused by per-BSS Rx counter
processing flow.

At multi-station scenario, it's observed that driver might
randomly obtain invalid wlan_idx (equals to 0) in Rx count
reports, which will lead to call trace problem. Hence we
add sanity-check to handle such invalid wlan_idx case.

If without this patch, kernel panic issue might occur under
multi-station scenario.

[Release-log]
N/A


Change-Id: I626459755a7ebadd48824feae09909835eca86ab
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8352829
1 file changed