WiFi Driver Won't Close To Allow Scanning Of AP's Once Connected

Unless I’m missing something, I cannot get the WIFI9110 class driver to re-scan AP’s once connected to a network.

Currently I have a G4004 working with a RS9110 chipset just fine under NETMF v4.3 R1. I can connect to my AP and everything works.

However, if I try to perform a scan of AP’s I get an exception:

#### Exception GHI.Networking.WiFiRS9110+HardwareFailureException - 0x00000000 (3) ####
#### Message:
#### GHI.Networking.WiFiRS9110::ThrowFailure [IP: 0007] ####
#### GHI.Networking.WiFiRS9110::get_LinkConnected [IP: 001c] ####
#### GHI.Networking.WiFiRS9110::Scan [IP: 0008] ####
A first chance exception of type ‘GHI.Networking.WiFiRS9110.HardwareFailureException’ occurred in GHI.Networking.dll

After closer inspection I realized that the connection was never dropped and the driver was never closed. When disconnecting from the network I get an exception:

#### Exception GHI.Networking.WiFiRS9110+HardwareTimeoutException - 0x00000000 (3) ####
#### Message:
#### GHI.Networking.WiFiRS9110::WaitOn [IP: 0012] ####
#### GHI.Networking.WiFiRS9110::Disconnect [IP: 0036] ####
A first chance exception of type ‘GHI.Networking.WiFiRS9110.HardwareTimeoutException’ occurred in GHI.Networking.dll

When I try to close the the connection I get an exception:

#### Exception GHI.Networking.WiFiRS9110+HardwareTimeoutException - 0x00000000 (3) ####
#### Message:
#### GHI.Networking.WiFiRS9110::WaitOn [IP: 0012] ####
#### GHI.Networking.WiFiRS9110::Disconnect [IP: 0036] ####
#### GHI.Networking.BaseInterface::Close [IP: 001b] ####
A first chance exception of type ‘GHI.Networking.WiFiRS9110.HardwareTimeoutException’ occurred in GHI.Networking.dll

So the then the open generates and exception along with the scanning for the AP’s. Why?

Why can’t I get the driver to scan for AP’s after being connected? Disconnecting, closing, even disposing the class and trying to create a new instance generates exceptions. The ONLY way I’ve been able to get the RS9110 to scan for AP’s once connected is to completely reset the G400 and start over (without connecting to a network). What am I missing?

04-05-2017 9:06PM Update:

The more I work with the v4.3 of the GHI assembly containing the driver for the RS9110 chipset the more I’m convinced that the v4.2 is much more stable and has the functionality I need. With v4.2 I can disconnect and scan with the chipset without issue. Version 4.3 seems to loose a ton of functionality vs. v4.2. I haven’t made a decision to revert my solution back to v4.2, but unless someone has a better idea I’m going to have to make the change. :wall: