# Problems using WPA2

**URL:** <https://forums.digi.com/t/problems-using-wpa2/8999>\
**Category:** Rabbit\
**Created:** [October 28, 2009, 2:22am UTC](https://forums.digi.com/t/problems-using-wpa2/8999 "2009-10-28T02:22:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chibouraska](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@chibouraska](https://forums.digi.com/u/chibouraska)\
**Post date:** [October 28, 2009, 2:22am UTC](https://forums.digi.com/t/problems-using-wpa2/8999/1 "2009-10-28T02:22:33Z")

</div>

Hi!

I can’t seem to get my 5600W to connect on my WPA2 protected network. I use this as defines:

#define \_PRIMARY\_STATIC\_IP “192.168.1.102”  
#define WIFI\_USE\_WPA  
#define WIFI\_AES\_ENABLED  
#define IFC\_WIFI\_SSID “linksys”  
#define IFC\_WIFI\_ROAM\_ENABLE 1  
#define IFC\_WIFI\_ROAM\_BEACON\_MISS 20  
#define IFC\_WIFI\_MODE IFPARAM\_WIFI\_INFRASTRUCTURE  
#define IFC\_WIFI\_REGION IFPARAM\_WIFI\_REGION\_AMERICAS  
#define IFC\_WIFI\_ENCRYPTION IFPARAM\_WIFI\_ENCR\_CCMP  
#define IFC\_WIFI\_WPA\_PSK\_PASSPHRASE “my passphrase”

Thanks! any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![User1181](https://avatars.discourse-cdn.com/v4/letter/u/e79b87/32.png) [@User1181](https://forums.digi.com/u/User1181)\
**Post date:** [November 2, 2009, 8:06pm UTC](https://forums.digi.com/t/problems-using-wpa2/8999/2 "2009-11-02T20:06:54Z")

</div>

Hi Chibouraska,

I’ve had the same problems. The security of my DHCP-router was configured as ‘WPA2-PSK / WPA-PSK’. When I changed the setting to only ‘WPA2-PSK’, the problem was solved!

Good luck,

Dennis

---

<div class="post-metadata">

**Author:** ![chibouraska](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@chibouraska](https://forums.digi.com/u/chibouraska)\
**Post date:** [November 4, 2009, 2:23pm UTC](https://forums.digi.com/t/problems-using-wpa2/8999/3 "2009-11-04T14:23:29Z")

</div>

Hi Dennis!

```
Thanks for a reply, i will try this.  

```

## AC

---

<div class="post-metadata">

**Author:** ![jayk](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@jayk](https://forums.digi.com/u/jayk)\
**Post date:** [November 13, 2009, 2:58am UTC](https://forums.digi.com/t/problems-using-wpa2/8999/4 "2009-11-13T02:58:29Z")

</div>

I’m running an Actiontec MI424WR router (I think this is the standard FiOS router). I had the same problem until I changed the selection for the WPA2 Encryption Algorithm on the router from TKIP+AES to just AES (there’s a little drop-down selector in there). Once I changed it to AES, everything started working just fine. I don’t know why all of my other devices (laptops, iphone, PS3, squeezebox v3) worked with the original setting, but fortunately everything still works with it set to AES.

- Jay

---

<div class="post-metadata">

**Author:** ![chibouraska](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@chibouraska](https://forums.digi.com/u/chibouraska)\
**Post date:** [November 14, 2009, 6:23pm UTC](https://forums.digi.com/t/problems-using-wpa2/8999/5 "2009-11-14T18:23:15Z")

</div>

I have WPA2 Personal on my Linksys router, is this like WPA2-PSK?

---

<div class="post-metadata">

**Author:** ![jayk](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@jayk](https://forums.digi.com/u/jayk)\
**Post date:** [November 14, 2009, 9:00pm UTC](https://forums.digi.com/t/problems-using-wpa2/8999/6 "2009-11-14T21:00:30Z")

</div>

Google is your friend…

[http://www.dslreports.com/forum/remark,15736210](http://www.dslreports.com/forum/remark,15736210)  
[http://compudent.blogspot.com/2006/09/wireless-wep-vs-wpa-vs-wpa2.html](http://compudent.blogspot.com/2006/09/wireless-wep-vs-wpa-vs-wpa2.html)  
[http://en.wikipedia.org/wiki/Wi-Fi\_Protected\_Access](http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access)

It looks like “WPA2 Personal” is the same as WPA2 PSK (per the wikipedia article). The real question is TKIP vs. AES. Reading through this stuff, it look like some routers support TKIP+AES in addition to AES-only for the sake of backwards compatibility with older access points that only use TKIP. The Rabbit libraries support AES… it’s not clear why it doesn’t work when the router is in TKIP+AES mode (at least this is the case with the Actiontec). Probably some subtle bug in there.

What model Linksys router do you have? Can you connect to the router from the RCM5600W when the router is configured for WPA2?

- Jay

---

<div class="post-metadata">

**Author:** ![chibouraska](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@chibouraska](https://forums.digi.com/u/chibouraska)\
**Post date:** [November 14, 2009, 10:39pm UTC](https://forums.digi.com/t/problems-using-wpa2/8999/7 "2009-11-14T22:39:11Z")

</div>

Hi Jay!  
I think i will try with my RCM5700 board just to see if a wired ethernet  
connection will work, but i douth it. My router is a linksys WRT310N.  
Regards!

## AC

---

<div class="post-metadata">

**Author:** ![otisman37](https://avatars.discourse-cdn.com/v4/letter/o/94ad74/32.png) [@otisman37](https://forums.digi.com/u/otisman37)\
**Post date:** [August 29, 2012, 11:15pm UTC](https://forums.digi.com/t/problems-using-wpa2/8999/8 "2012-08-29T23:15:21Z")

</div>

I know this is a very old thread, but I was searching for the answer to this exact problem and couldn’t find it anywhere in the forums… But I worked it out now, so I thought I should share. In the ‘tcp\_config.lib’ file, version 10.66 onwards, they updated the documentation to cover this scenario.

The reasoning behind it is a bit sketchy, but you need to do this:

#define IFC\_WIFI\_ENCRYPTION IFPARAM\_WIFI\_ENCR\_CCMP| IFPARAM\_WIFI\_ENCR\_TKIP

Using the bitwise OR on the encryption - I think this makes it negotiate with the access point which encryption to use.

Also works with the runtime ifconfig() function - but I found it only worked if I had no spaces either side of the OR (the documentation shows it with spaces - I am using DynamicC v10.60)
