[PATCH openEuler-5.10-LTS 12/31] wifi: mac80211: fix crash in beacon protection for P2P-device