From reading the forum I guess my shiny new spark won’t work because it’s limited to scanning up to wifi channel 11. I’m on 12 here in the UK and not in a position to change down.
From the issues log:
“Channels above 11. This is in particular an international issue; if you are outside the U.S., your Wi-Fi router might run at channels 12, 13, or 14, which the CC3000 does not support. Please use channels numbered 11 or lower.”
The CC3000 happily supports channels above 11. I have an adafruit breakout working fine on channel 12 and all it took was changing a single byte value in a call to set wlan_ioctl_set_scan_params
So if you build locally (like you must have done to for the Adafruit board) you can make a similar change in the Spark code. It is not any harder than what you did before.
Near as I can tell, the firmware never calls wlan_ioctl_set_scan_params so we are getting the defaults. The default channel mask is 0x7ff which means channels 11 down to 1. Allowing users to change this to 0x1fff would enable all 13 channels.
I would think that the logical place to put a call would be SPARK_WLAN_Setup in spark_wlan.cpp.
Thanks, I was just wondering where best to put the call. I’ll have a go this evening at a local built with the change in.
Hopefully I’ll only have to get this working once to overwrite the defaults on the CC3000. Since the official firmware never calls wlan_ioctl_set_scan_params those values should never be overwritten and I can then run future OTA updates etc.
so this will allow channels 13 or lower?
for some reason my router can go to channel 14? and my wifi sniffer can pick up channel 14 aswell even though ive never seen it before