# Won't connect to Channel above 11 - CC3000 does support it

**URL:** <https://community.particle.io/t/wont-connect-to-channel-above-11-cc3000-does-support-it/3762>\
**Category:** Getting Started\
**Created:** [April 3, 2014, 7:12pm UTC](https://community.particle.io/t/wont-connect-to-channel-above-11-cc3000-does-support-it/3762 "2014-04-03T19:12:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![robjames](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@robjames](https://community.particle.io/u/robjames)\
**Post date:** [April 3, 2014, 7:12pm UTC](https://community.particle.io/t/wont-connect-to-channel-above-11-cc3000-does-support-it/3762/1 "2014-04-03T19:12:02Z")

</div>

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

Rob J

---

<div class="post-metadata">

**Author:** ![bko](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bko/32/20704_2.png) [@bko](https://community.particle.io/u/bko)\
**Post date:** [April 3, 2014, 7:55pm UTC](https://community.particle.io/t/wont-connect-to-channel-above-11-cc3000-does-support-it/3762/2 "2014-04-03T19:55:18Z")

</div>

So if you [build locally](https://community.spark.io/t/the-spark-core-firmware/532) (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.

---

<div class="post-metadata">

**Author:** ![robjames](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@robjames](https://community.particle.io/u/robjames)\
**Post date:** [April 3, 2014, 7:56pm UTC](https://community.particle.io/t/wont-connect-to-channel-above-11-cc3000-does-support-it/3762/3 "2014-04-03T19:56:31Z")

</div>

cool! I’ll give that a go. Change is simple but local build looks like a pain 😕

---

<div class="post-metadata">

**Author:** ![Dave](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/dave/32/181_2.png) [@Dave](https://community.particle.io/u/Dave)\
**Post date:** [April 4, 2014, 4:37am UTC](https://community.particle.io/t/wont-connect-to-channel-above-11-cc3000-does-support-it/3762/4 "2014-04-04T04:37:48Z")

</div>

Good to know! Maybe we can expose this in a #define somewhere 😄

---

<div class="post-metadata">

**Author:** ![bko](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bko/32/20704_2.png) [@bko](https://community.particle.io/u/bko)\
**Post date:** [April 4, 2014, 11:20am UTC](https://community.particle.io/t/wont-connect-to-channel-above-11-cc3000-does-support-it/3762/5 "2014-04-04T11:20:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![robjames](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@robjames](https://community.particle.io/u/robjames)\
**Post date:** [April 4, 2014, 11:32am UTC](https://community.particle.io/t/wont-connect-to-channel-above-11-cc3000-does-support-it/3762/6 "2014-04-04T11:32:54Z")

</div>

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.

cheers,

Rob

---

<div class="post-metadata">

**Author:** ![Dave](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/dave/32/181_2.png) [@Dave](https://community.particle.io/u/Dave)\
**Post date:** [May 21, 2014, 2:42pm UTC](https://community.particle.io/t/wont-connect-to-channel-above-11-cc3000-does-support-it/3762/7 "2014-05-21T14:42:50Z")

</div>

We were playing with this recently, here’s a gist of how to tell the core to connect on the upper channels:

> <https://gist.github.com/dmiddlecamp/40c34176e8134893e6a1>

Enjoy!  
David

---

<div class="post-metadata">

**Author:** ![bigjme](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@bigjme](https://community.particle.io/u/bigjme)\
**Post date:** [May 21, 2014, 4:00pm UTC](https://community.particle.io/t/wont-connect-to-channel-above-11-cc3000-does-support-it/3762/8 "2014-05-21T16:00:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bko](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bko/32/20704_2.png) [@bko](https://community.particle.io/u/bko)\
**Post date:** [May 21, 2014, 9:45pm UTC](https://community.particle.io/t/wont-connect-to-channel-above-11-cc3000-does-support-it/3762/9 "2014-05-21T21:45:59Z")

</div>

802.11b channel 14 can only be legally used in Japan. I believe that the TI CC3000 only goes up to channel 13.
