[][MAC80211][mt76][Fix null pointer access]

[Description]
Fix null pointer dereference issue during Authentication stage and
add sanity check in mt7915_sta_statistics

Without this patch, when the station is still in Authentication stage and mt76 still not allocate the mt7915_sta data structure

If mac80211 query station statistics, it causes null pointer calltrace in mt7915_mcu_wed_wa_tx_stats+0x140/0x190 [mt7915e].

[Release-log]
N/A

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