[PATCH 6.2 035/211] wifi: nl80211: fix NULL-ptr deref in offchan check