<!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 ‘supp_ether_send’:<br>
ibss_rsn.c:54: warning: implicit declaration of function
‘wpa_drv_send_eapol’<br>
ibss_rsn.c: In function ‘supp_set_key’:<br>
ibss_rsn.c:125: warning: implicit declaration of function
‘wpa_drv_set_key’<br>
ibss_rsn.c: In function ‘ibss_rsn_auth_init_group’:<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 2010-01-11
12:27:08.000000000 +0530<br>
+++ ../Download/wpa_supplicant-0.7.0/wpa_supplicant/ibss_rsn.c
2009-11-22 02:19:02.000000000 +0530<br>
@@ -21,7 +21,6 @@<br>
#include "wpa_ie.h"<br>
#include "../hostapd/wpa.h"<br>
#include "ibss_rsn.h"<br>
-#include "driver_i.h"<br>
<br>
<br>
static void ibss_rsn_free(struct ibss_rsn_peer *peer)<br>
@@ -236,14 +235,27 @@<br>
}<br>
<br>
<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>
const u8 *addr, int idx, u8 *key,<br>
size_t key_len)<br>
{<br>
struct ibss_rsn *ibss_rsn = ctx;<br>
u8 seq[6];<br>
+ wpa_alg alg;<br>
<br>
os_memset(seq, 0, sizeof(seq));<br>
+ if (os_strcmp(_alg, "none") == 0)<br>
+ alg = WPA_ALG_NONE;<br>
+ else if (os_strcmp(_alg, "WEP") == 0)<br>
+ alg = WPA_ALG_WEP;<br>
+ else if (os_strcmp(_alg, "TKIP") == 0)<br>
+ alg = WPA_ALG_TKIP;<br>
+ else if (os_strcmp(_alg, "CCMP") == 0)<br>
+ alg = WPA_ALG_CCMP;<br>
+ else if (os_strcmp(_alg, "IGTK") == 0)<br>
+ alg = WPA_ALG_IGTK;<br>
+ else<br>
+ return -1;<br>
<br>
if (idx == 0) {<br>
/*<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>