<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Jouni Malinen,<br>
<br>
I find the error during the compilation.<br>
<br>
<font face="Courier New, Courier, monospace"><small>ibss_rsn.c: In
function &#8216;supp_ether_send&#8217;:<br>
ibss_rsn.c:54: warning: implicit declaration of function
&#8216;wpa_drv_send_eapol&#8217;<br>
ibss_rsn.c: In function &#8216;supp_set_key&#8217;:<br>
ibss_rsn.c:125: warning: implicit declaration of function
&#8216;wpa_drv_set_key&#8217;<br>
ibss_rsn.c: In function &#8216;ibss_rsn_auth_init_group&#8217;:<br>
ibss_rsn.c:295: warning: assignment from incompatible pointer type</small></font><br>
.........<br>
<small><font face="Courier New, Courier, monospace">ibss_rsn.o: In
function `auth_set_key':<br>
/root/Download/wpa_supplicant-0.7.0/wpa_supplicant/ibss_rsn.c:269:
undefined reference to `wpa_drv_set_key'<br>
ibss_rsn.o: In function `auth_send_eapol':<br>
/root/Download/wpa_supplicant-0.7.0/wpa_supplicant/ibss_rsn.c:234:
undefined reference to `wpa_drv_send_eapol'<br>
ibss_rsn.o: In function `supp_ether_send':<br>
/root/Download/wpa_supplicant-0.7.0/wpa_supplicant/ibss_rsn.c:54:
undefined reference to `wpa_drv_send_eapol'<br>
ibss_rsn.o: In function `supp_set_key':<br>
/root/Download/wpa_supplicant-0.7.0/wpa_supplicant/ibss_rsn.c:125:
undefined reference to `wpa_drv_set_key'<br>
collect2: ld returned 1 exit status<br>
make: *** [wpa_supplicant] Error 1</font></small><br>
<br>
The following patch will solve this.<br>
<small><small><font face="Courier New, Courier, monospace">[root@asl-044
Desktop]# diff -Naur wpa_supplicant-0.7.0/wpa_supplicant/ibss_rsn.c
../Download/wpa_supplicant-0.7.0/wpa_supplicant/ibss_rsn.c <br>
--- wpa_supplicant-0.7.0/wpa_supplicant/ibss_rsn.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2010-01-11
12:27:08.000000000 +0530<br>
+++ ../Download/wpa_supplicant-0.7.0/wpa_supplicant/ibss_rsn.c&nbsp;
2009-11-22 02:19:02.000000000 +0530<br>
@@ -21,7 +21,6 @@<br>
&nbsp;#include "wpa_ie.h"<br>
&nbsp;#include "../hostapd/wpa.h"<br>
&nbsp;#include "ibss_rsn.h"<br>
-#include "driver_i.h"<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;static void ibss_rsn_free(struct ibss_rsn_peer *peer)<br>
@@ -236,14 +235,27 @@<br>
&nbsp;}<br>
&nbsp;<br>
&nbsp;<br>
-static int auth_set_key(void *ctx, int vlan_id, wpa_alg alg,<br>
+static int auth_set_key(void *ctx, int vlan_id, const char *_alg,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; const u8 *addr, int idx, u8 *key,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; size_t key_len)<br>
&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; struct ibss_rsn *ibss_rsn = ctx;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; u8 seq[6];<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wpa_alg alg;<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; os_memset(seq, 0, sizeof(seq));<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (os_strcmp(_alg, "none") == 0)<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alg = WPA_ALG_NONE;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else if (os_strcmp(_alg, "WEP") == 0)<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alg = WPA_ALG_WEP;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else if (os_strcmp(_alg, "TKIP") == 0)<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alg = WPA_ALG_TKIP;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else if (os_strcmp(_alg, "CCMP") == 0)<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alg = WPA_ALG_CCMP;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else if (os_strcmp(_alg, "IGTK") == 0)<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alg = WPA_ALG_IGTK;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (idx == 0) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /*<br>
</font></small></small><br>
<br>
Thanks,<br>
UjjaL<br>
<blockquote cite="mid:20100109091207.GE6190@jm.kir.nu" type="cite">
  <pre wrap="">On Thu, Jan 07, 2010 at 11:22:45PM +0530, Ujjal Roy wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I found error and fixed after adding the flag *CONFIG_IBSS_RSN* to the
.config file.

Please find the attached ibss_rsn.c file, let me know if I am not wrong.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Could you please send this in patch format or describe what exactly you
changed? The file you sent is based on some unknown version of the
ibss_rsn.c that does not match with the current development branch. The
only clear change I noticed when comparing the files were in the
sequence number length (from 6 to 8) which is not correct; the TSC and
PN used by TKIP and CCMP are 6 octets.

  </pre>
</blockquote>
<br>
</body>
</html>