# WieM: WPA\_PSK with AES is not working....

**URL:** <https://forums.digi.com/t/wiem-wpa-psk-with-aes-is-not-working/3754>\
**Category:** NET+OS\
**Tags:** wifi-wpa-psk\
**Created:** [May 7, 2007, 5:06am UTC](https://forums.digi.com/t/wiem-wpa-psk-with-aes-is-not-working/3754 "2007-05-07T05:06:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![devid](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@devid](https://forums.digi.com/u/devid)\
**Post date:** [May 7, 2007, 5:06am UTC](https://forums.digi.com/t/wiem-wpa-psk-with-aes-is-not-working/3754/1 "2007-05-07T05:06:59Z")

</div>

Dear Friends,  
My DIGI board WieM works fine for WEP and WPA-PSK with TKIP securities. But when I set WPA-PSK with AES (security = WLN\_ENCR\_CCMP) then API wln\_params() is throws an error.Please help me to resolve this. Other than encryption key (TKIP/AES) is there any changes between TKIP and AES ?  
THanks in advance

Message was edited by: devid

---

<div class="post-metadata">

**Author:** ![charliek](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@charliek](https://forums.digi.com/u/charliek)\
**Post date:** [May 10, 2007, 4:18pm UTC](https://forums.digi.com/t/wiem-wpa-psk-with-aes-is-not-working/3754/2 "2007-05-10T16:18:55Z")

</div>

You mean the call to wln\_set\_params, correct? What’s the error code returned?

---

<div class="post-metadata">

**Author:** ![fyicc](https://avatars.discourse-cdn.com/v4/letter/f/8e7dd6/32.png) [@fyicc](https://forums.digi.com/u/fyicc)\
**Post date:** [September 24, 2007, 6:50pm UTC](https://forums.digi.com/t/wiem-wpa-psk-with-aes-is-not-working/3754/3 "2007-09-24T18:50:51Z")

</div>

hi devid, i noticed you got the connect wi-em working for wpa-psk with tkip security. I’m trying to get wpa-psk with tkip security working on a connect wi-me but have had no success. Could you lend me some pointers on how you setup the wireless parameters? I’m assuming there won’t be much difference between the wi-em and wi-me.

This is a summary of my current configuration:  
authen = WLN\_AUTH\_WPA\_PSK  
encrypt = WLN\_ENCR\_TKIP  
wpa\_psk = \<32 characters\>

The access point has also been configured for these settings. Please let me know if there are other fields I need to set explicitly?

---

<div class="post-metadata">

**Author:** ![devid](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@devid](https://forums.digi.com/u/devid)\
**Post date:** [May 11, 2007, 8:04am UTC](https://forums.digi.com/t/wiem-wpa-psk-with-aes-is-not-working/3754/4 "2007-05-11T08:04:11Z")

</div>

-1 …i am working with older version of Netos… not with latest version

---

<div class="post-metadata">

**Author:** ![charliek](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@charliek](https://forums.digi.com/u/charliek)\
**Post date:** [May 11, 2007, 3:44pm UTC](https://forums.digi.com/t/wiem-wpa-psk-with-aes-is-not-working/3754/5 "2007-05-11T15:44:09Z")

</div>

The error is returned because one of your settings is invalid in the structure you passed to the function. Try putting a breakpoint on wln\_set\_params and step through the code until you see on which member the error is occuring.

---

<div class="post-metadata">

**Author:** ![devid](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@devid](https://forums.digi.com/u/devid)\
**Post date:** [May 16, 2007, 8:48am UTC](https://forums.digi.com/t/wiem-wpa-psk-with-aes-is-not-working/3754/6 "2007-05-16T08:48:28Z")

</div>

You are corret. But there is no issue till wln\_set\_params () function. But once i execute this it returns -1. DO u you have any idea of parameter differs from WEP and WPA-PSk with AES.

---

<div class="post-metadata">

**Author:** ![charliek](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@charliek](https://forums.digi.com/u/charliek)\
**Post date:** [May 16, 2007, 1:57pm UTC](https://forums.digi.com/t/wiem-wpa-psk-with-aes-is-not-working/3754/7 "2007-05-16T13:57:29Z")

</div>

Sure, you need to set the WPA options such as the wpa\_psk, authen, encrypt, etc. However, you do have to fill out the whole structure, not just the parts you want to change. If you’re not already, try getting the current structure first using wln\_get\_params, modify what you want to change the encryption, authentication, keys, etc, to, and then call wln\_set\_params.

If you’re still having problems you need to debug as mentioned above.
