Hi Dan,<br>
<br>
Earlier I also tried IW_ENCODE_ALG_TKIP. But it dint work. Then I triend the ALG_WEP. But was no use.<br>
<br>
Regards,<br>
Basu<br><br><div><span class="gmail_quote">On 1/4/07, <b class="gmail_sendername">Dan Williams</b> <<a href="mailto:dcbw@redhat.com">dcbw@redhat.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, 2007-01-04 at 11:17 +0530, Basavaraj Arani wrote:<br>> Hi Dan,<br>><br>> I am using the Firmware 5.6.08. But whenever I set the WPA key, the<br>> card somehow doesn't get associated with the Access Point.
<br>> I am using the DLink-DWL-7100AP access point.<br><br>Well, note that the driver modifications Matthieu made aren't fully<br>debugged and aren't integrated upstream into the kernel, so there are no<br>guarantees that everything works in the driver yet. I'm working on
<br>cleaning it up and integrating the WPA code into the existing Airo<br>driver, but it's a slow process since we want the same driver to be used<br>for all modes.<br><br>> Here is the code for setting the WPA on/off
<br>> ........<br>> if(!strcasecmp(args[0], "on"))<br>> {<br>> //wrq.u.param.flags = IW_AUTH_WPA_ENABLED & IW_AUTH_INDEX;<br>> wrq.u.param.flags = IW_AUTH_DROP_UNENCRYPTED & IW_AUTH_INDEX;
<br>> wrq.u.param.value = 1;<br>><br>> if(iw_set_ext(skfd, ifname, SIOCSIWAUTH, &wrq) < 0)<br>> return(IWERR_SET_EXT);<br>><br>> }<br>> else if(!strcasecmp(args[0], "off"))
<br>> {<br>> wrq.u.param.flags = IW_AUTH_WPA_ENABLED & IW_AUTH_INDEX;<br>> wrq.u.param.value = 0;<br>><br>> if(iw_set_ext(skfd, ifname, SIOCSIWAUTH, &wrq) < 0)<br>> return(IWERR_SET_EXT);
<br>> }<br>> ........<br>><br>> and for setting the WPA keys, I have the following code.<br>><br>> static int<br>> set_wpakey_info(int skfd,<br>> char
*
ifname,<br>> char
*
args[],<br>> int count)<br>> {<br>> struct iwreq wrq;<br>> struct iw_encode_ext *iwee;<br>> unsigned char key[IW_ENCODING_TOKEN_MAX];<br>> int keylen = strlen(args[0]);
<br>><br>> memset(&wrq, 0x00, sizeof(wrq));<br>><br>> memcpy(key, args[0], keylen);<br>> iwee = (struct iw_encode_ext *)malloc(sizeof(struct iw_encode_ext)<br>> + IW_ENCODING_TOKEN_MAX);<br>
><br>> iwee->alg = IW_ENCODE_ALG_WEP;<br><br>You appear to be telling the driver to use a WEP key, not a WPA key.<br>You probably want IW_ENCODE_ALG_TKIP here.<br><br>Dan<br><br>> iwee->key_len = keylen;
<br>> iwee->ext_flags = 1;<br>> memcpy(iwee->key, key, keylen);<br>><br>> wrq.u.encoding.pointer = (caddr_t)iwee;<br>> wrq.u.encoding.flags = 1;<br>> wrq.u.encoding.length = sizeof(struct iw_encode_ext) + keylen;
<br>> if(iw_set_ext(skfd, ifname,SIOCSIWENCODEEXT, &wrq) < 0)<br>> {<br>> return(IWERR_SET_EXT);<br>> }<br>> return(1);<br>> }<br>><br>> I tried to set a key of length 32.
<br>> The key I set at both the ends (AP/ client adapater) is<br>> abcdefghijklmnopqrstuvwxyzabcdef.<br>><br>> But the card doesn't get associated with the AP.<br>><br>> Please help me in resolving this problem.
<br>><br>> Many thanks in advance.<br>><br>> Regards,<br>> Basu<br>><br>><br>> On 1/4/07, Dan Williams <<a href="mailto:dcbw@redhat.com">dcbw@redhat.com</a>> wrote:<br>> On Wed, 2007-01-03 at 09:20 +0700, kemas henry wrote:
<br>> > On Tue, 2007-01-02 at 18:13 +0100, <a href="mailto:castet.matthieu@free.fr">castet.matthieu@free.fr</a><br>> wrote:<br>> > > Selon R Arani Basavaraj-a24052 <<a href="mailto:basavaraj@motorola.com">
basavaraj@motorola.com</a>>:<br>> > ><br>> > > ><br>> > > > Hi,<br>> > > Hi,<br>> > ><br>> > > ><br>> > > > Is the current Linux driver for aironet pc4500 driver
<br>> supports WPA-PSK?<br>> > > > I downloaded the airo driver which claims to support<br>> WPA-PSK from<br>> > > > <a href="http://castet.matthieu.free.fr/airo">
http://castet.matthieu.free.fr/airo</a>, but it doesn't<br>> seems to be working well<br>> > > > for me.<br>> > > AFAIK, only 340 and 350 series with a recent firmware<br>
> support wpa. The older<br>> > > cards don't.<br>> ><br>> > did you mean cisco 340 and 350 pcmcia ?<br>><br>> Correct, only the 340 and 350 versions, in both MiniPCI and
<br>> PCMCIA.<br>> You'll need firmware version 5.30.17 or later to do WPA.<br>><br>> > what kind of WPA that this card support ?<br>><br>> TKIP encryption only, with either WPA or WPA2. The hardware
<br>> just cannot<br>> do AES/CCMP.<br>><br>> Dan<br>><br>><br>><br>> _______________________________________________<br>> HostAP mailing list<br>>
<a href="mailto:HostAP@shmoo.com">HostAP@shmoo.com</a><br>> <a href="http://lists.shmoo.com/mailman/listinfo/hostap">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>><br><br></blockquote></div><br>