[openEuler-5.10-LTS 009/501] wifi: mac80211_hwsim: add back erroneously removed cast