[][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
diff --git a/autobuild_mac80211_release/package/kernel/mt76/patches/2012-wifi-mt76-mt7915-wed-add-per-bss-statistic-info.patch b/autobuild_mac80211_release/package/kernel/mt76/patches/2012-wifi-mt76-mt7915-wed-add-per-bss-statistic-info.patch
index 266472b..9b86205 100644
--- a/autobuild_mac80211_release/package/kernel/mt76/patches/2012-wifi-mt76-mt7915-wed-add-per-bss-statistic-info.patch
+++ b/autobuild_mac80211_release/package/kernel/mt76/patches/2012-wifi-mt76-mt7915-wed-add-per-bss-statistic-info.patch
@@ -1,17 +1,17 @@
-From 7ea41c5a217712157db19f3f042831319df98c3d Mon Sep 17 00:00:00 2001
+From 4e0a12871b8c134c99bd702f425c492ddc1f50b6 Mon Sep 17 00:00:00 2001
 From: Evelyn Tsai <evelyn.tsai@mediatek.com>
 Date: Wed, 1 Nov 2023 07:50:08 +0800
-Subject: [PATCH 2012/2015] wifi: mt76: mt7915: wed: add per bss statistic info
+Subject: [PATCH 1/5] wifi: mt76: mt7915: wed: add per bss statistic info
 
 ---
  mt7915/init.c        |  1 +
  mt7915/mac.c         | 21 +++++++++++++++++++++
- mt7915/main.c        |  2 +-
+ mt7915/main.c        |  5 ++++-
  mt7915/mcu.c         | 30 +++++++++++++++++++++++++++---
  mt7915/mmio.c        | 26 +++++++++++++++++++++++++-
  mt7915/mt7915.h      |  3 ++-
  mt7915/mtk_debugfs.c |  2 +-
- 7 files changed, 78 insertions(+), 7 deletions(-)
+ 7 files changed, 81 insertions(+), 7 deletions(-)
 
 diff --git a/mt7915/init.c b/mt7915/init.c
 index f38c8a1..7bc8039 100644
@@ -79,10 +79,20 @@
  		spin_lock_bh(&phy->stats_lock);
  	}
 diff --git a/mt7915/main.c b/mt7915/main.c
-index feb2c89..617e7e2 100644
+index feb2c89..722635e 100644
 --- a/mt7915/main.c
 +++ b/mt7915/main.c
-@@ -1247,7 +1247,7 @@ static void mt7915_sta_statistics(struct ieee80211_hw *hw,
+@@ -1219,6 +1219,9 @@ static void mt7915_sta_statistics(struct ieee80211_hw *hw,
+ 	struct rate_info *txrate = &msta->wcid.rate;
+ 	struct rate_info rxrate = {};
+ 
++	if (msta->wcid.idx == 0)
++		return;
++
+ 	if (is_connac_v2(&phy->dev->mt76) &&
+ 	    !mt7915_mcu_get_rx_rate(phy, vif, sta, &rxrate)) {
+ 		sinfo->rxrate = rxrate;
+@@ -1247,7 +1250,7 @@ static void mt7915_sta_statistics(struct ieee80211_hw *hw,
  		sinfo->tx_bytes = msta->wcid.stats.tx_bytes;
  		sinfo->filled |= BIT_ULL(NL80211_STA_INFO_TX_BYTES64);