There seems to be something wrong with the manual configuration of IP address on iMX6. In our software, to manually set the IP address, we first write the parameters to the relevant registry-keys:
HKEY_LOCAL_MACHINE\Comm\NETRTWLANU1\Parms\TcpIp\EnableDHCP HKEY_LOCAL_MACHINE\Comm\NETRTWLANU1\Parms\TcpIp\IPAddress HKEY_LOCAL_MACHINE\Comm\NETRTWLANU1\Parms\TcpIp\SubnetMask
RegFlush() to save the registry. And finally we rebind the adapter using the function
In general this works, but the issue we found is that the Subnet mask seems to be ignored. This is obvious when we set the Subnet mask to an invalid value (e.g. 22.214.171.124) and we find that we can still communicate with the device. I have also confirmed it using the Network - Control Panel applet and with that the behavior is the same.
With the old platform we were using (Colibri PXA with WinCE 6.0), this was not happening. On that board, when we set the Subnet mask to 126.96.36.199 the communication gets lost.