lsi: check ssid versus sdid only if ssid is valid