nl80211: fix check for valid SSID size in scan operations