[PATCH 6.5 037/211] wifi: ath12k: avoid array overflow of hw mode for preferred_hw_mode