[PATCH 5.10 060/717] nl80211/cfg80211: fix potential infinite loop