net: tcp: Invalid transition from FIN_WAIT_1 to CLOSE_WAIT
net: tcp: Invalid transition from FIN_WAIT_1 to CLOSE_WAIT

We incorrectly changed the state from FIN_WAIT_1 to CLOSE_WAIT.
This caused ACK be sent in CLOSE_WAIT state when the connection
was closed by peer. Sending ACK in this state is not allowed
according to RFC. The connection was still closed but slightly
wrong way.

Jira: ZEP-1961

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

kraj/zephyr,erwango/zephyr,sharronliu/zephyr,pklazy/zephyr,erwango/zephyr,finikorg/zephyr,explora26/zephyr,sharronliu/zephyr,fractalclone/zephyr-riscv,aceofall/zephyr-iotos,zephyrproject-rtos/zephyr,zephyriot/zephyr,aceofall/zephyr-iotos,holtmann/zephyr,ldts/zephyr,rsalveti/zephyr,rsalveti/zephyr,Vudentz/zephyr,galak/zephyr,runchip/zephyr-cc3220,fbsder/zephyr,erwango/zephyr,bigdinotech/zephyr,holtmann/zephyr,bigdinotech/zephyr,mbolivar/zephyr,finikorg/zephyr,holtmann/zephyr,bboozzoo/zephyr,holtmann/zephyr,runchip/zephyr-cc3200,ldts/zephyr,mbolivar/zephyr,punitvara/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,zephyriot/zephyr,runchip/zephyr-cc3220,zephyriot/zephyr,rsalveti/zephyr,nashif/zephyr,holtmann/zephyr,ldts/zephyr,aceofall/zephyr-iotos,nashif/zephyr,kraj/zephyr,pklazy/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,explora26/zephyr,pklazy/zephyr,bboozzoo/zephyr,zephyrproject-rtos/zephyr,runchip/zephyr-cc3220,GiulianoFranchetto/zephyr,runchip/zephyr-cc3200,zephyriot/zephyr,sharronliu/zephyr,kraj/zephyr,fractalclone/zephyr-riscv,runchip/zephyr-cc3220,bboozzoo/zephyr,fractalclone/zephyr-riscv,GiulianoFranchetto/zephyr,galak/zephyr,pklazy/zephyr,fbsder/zephyr,ldts/zephyr,bboozzoo/zephyr,bigdinotech/zephyr,Vudentz/zephyr,sharronliu/zephyr,explora26/zephyr,zephyrproject-rtos/zephyr,erwango/zephyr,explora26/zephyr,ldts/zephyr,runchip/zephyr-cc3200,explora26/zephyr,punitvara/zephyr,aceofall/zephyr-iotos,fractalclone/zephyr-riscv,mbolivar/zephyr,bigdinotech/zephyr,sharronliu/zephyr,fbsder/zephyr,rsalveti/zephyr,Vudentz/zephyr,finikorg/zephyr,nashif/zephyr,fbsder/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,pklazy/zephyr,runchip/zephyr-cc3200,kraj/zephyr,fractalclone/zephyr-riscv,erwango/zephyr,punitvara/zephyr,aceofall/zephyr-iotos,bboozzoo/zephyr,GiulianoFranchetto/zephyr,kraj/zephyr,punitvara/zephyr,runchip/zephyr-cc3220,finikorg/zephyr,mbolivar/zephyr,punitvara/zephyr,nashif/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,mbolivar/zephyr,galak/zephyr,Vudentz/zephyr,Vudentz/zephyr,zephyriot/zephyr,runchip/zephyr-cc3200,bigdinotech/zephyr,fbsder/zephyr,rsalveti/zephyr