net: wifi: Fix connect command parameter checks in shell
net: wifi: Fix connect command parameter checks in shell

The connect command parameters were not checked properly if
user decided to supply only mandatory parameters.

Signed-off-by: Jukka Rissanen <f9f077d1da4c7aa947f9864fa5a28c3588f6a45d@linux.intel.com>

galak/zephyr,explora26/zephyr,finikorg/zephyr,punitvara/zephyr,ldts/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,zephyrproject-rtos/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,ldts/zephyr,finikorg/zephyr,explora26/zephyr,punitvara/zephyr,punitvara/zephyr,nashif/zephyr,ldts/zephyr,ldts/zephyr,explora26/zephyr,punitvara/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,nashif/zephyr,GiulianoFranchetto/zephyr,nashif/zephyr,GiulianoFranchetto/zephyr,explora26/zephyr,Vudentz/zephyr,GiulianoFranchetto/zephyr,nashif/zephyr,nashif/zephyr,Vudentz/zephyr,Vudentz/zephyr,explora26/zephyr,galak/zephyr,galak/zephyr,galak/zephyr,finikorg/zephyr