diff mbox

Compiling for wire-only 802.1X on embedded linux

Message ID 50B79150.2040308@lenbrook.com
State Superseded
Headers show

Commit Message

Jonathan Bagg Nov. 29, 2012, 4:46 p.m. UTC
Tilman,

I tried building using your configs.  First you need to add aes, sha1 
and md5....


Second you need to remove CONFIG_PEERKEY.  It compiles for me, but no 
idea if it is what you want,

Jon

On 12-11-29 08:03 AM, Tilman Baumann wrote:
> On 29/11/12 12:53, Jonathan Bagg wrote:
>> Tilman,
>>
>> wpa_supplicant depends on libopenssl (I think >= v0.9.9). Make sure it
>> is installed first before compiling
>> wpa_supplicant.
> I have 0.9.8o-4squeeze13 (Debian)
>
> But I don't really think that is it. Because building works just fine,
> if I leave WPA enabled. It falls apart when I disable WPA.
>

Comments

Tilman Baumann Nov. 30, 2012, 11:56 a.m. UTC | #1
Thanks. That worked.

On 29/11/12 16:46, Jonathan Bagg wrote:
> Tilman,
>
> I tried building using your configs.  First you need to add aes, sha1
> and md5....
>
> diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
> index 22df8a0..a3abaf8 100644
> --- a/wpa_supplicant/Makefile
> +++ b/wpa_supplicant/Makefile
> @@ -187,6 +187,9 @@ NEED_MD5=y
>    NEED_RC4=y
>    else
>    CFLAGS += -DCONFIG_NO_WPA -DCONFIG_NO_WPA2
> +NEED_AES=y
> +NEED_SHA1=y
> +NEED_MD5=y
>    endif
>
>    ifdef CONFIG_IBSS_RSN
>
> Second you need to remove CONFIG_PEERKEY.  It compiles for me, but no
> idea if it is what you want,
>
> Jon
>
Tilman Baumann Nov. 30, 2012, 12:07 p.m. UTC | #2
Quick follow up.

It looks like Jonathans fix should go into the code.
But I did not want to maintain a patch, so I just put those variables 
into my .config.
NEED_AES=y
NEED_SHA1=y
NEED_MD5=y

That works fine.


On 30/11/12 11:56, Tilman Baumann wrote:
> Thanks. That worked.
>
> On 29/11/12 16:46, Jonathan Bagg wrote:
>> Tilman,
>>
>> I tried building using your configs.  First you need to add aes, sha1
>> and md5....
>>
>> diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
>> index 22df8a0..a3abaf8 100644
>> --- a/wpa_supplicant/Makefile
>> +++ b/wpa_supplicant/Makefile
>> @@ -187,6 +187,9 @@ NEED_MD5=y
>>     NEED_RC4=y
>>     else
>>     CFLAGS += -DCONFIG_NO_WPA -DCONFIG_NO_WPA2
>> +NEED_AES=y
>> +NEED_SHA1=y
>> +NEED_MD5=y
>>     endif
>>
>>     ifdef CONFIG_IBSS_RSN
>>
>> Second you need to remove CONFIG_PEERKEY.  It compiles for me, but no
>> idea if it is what you want,
>>
>> Jon
>>
Tilman Baumann Dec. 3, 2012, 4:45 p.m. UTC | #3
Also needed when building without CONFIG_DRIVER_NL80211


NEED_SME=y


On 30/11/12 12:07, Tilman Baumann wrote:
> Quick follow up.
>
> It looks like Jonathans fix should go into the code.
> But I did not want to maintain a patch, so I just put those variables
> into my .config.
> NEED_AES=y
> NEED_SHA1=y
> NEED_MD5=y
>
> That works fine.
>
>
> On 30/11/12 11:56, Tilman Baumann wrote:
>> Thanks. That worked.
>>
>> On 29/11/12 16:46, Jonathan Bagg wrote:
>>> Tilman,
>>>
>>> I tried building using your configs.  First you need to add aes, sha1
>>> and md5....
>>>
>>> diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
>>> index 22df8a0..a3abaf8 100644
>>> --- a/wpa_supplicant/Makefile
>>> +++ b/wpa_supplicant/Makefile
>>> @@ -187,6 +187,9 @@ NEED_MD5=y
>>>      NEED_RC4=y
>>>      else
>>>      CFLAGS += -DCONFIG_NO_WPA -DCONFIG_NO_WPA2
>>> +NEED_AES=y
>>> +NEED_SHA1=y
>>> +NEED_MD5=y
>>>      endif
>>>
>>>      ifdef CONFIG_IBSS_RSN
>>>
>>> Second you need to remove CONFIG_PEERKEY.  It compiles for me, but no
>>> idea if it is what you want,
>>>
>>> Jon
>>>
>
Jouni Malinen Dec. 18, 2012, 1:22 p.m. UTC | #4
On Mon, Dec 03, 2012 at 04:45:44PM +0000, Tilman Baumann wrote:
> Also needed when building without CONFIG_DRIVER_NL80211
> 
> NEED_SME=y

That shouldn't be needed. Could you please send a .config file that
fails to build without NEED_SME=y but builds with that line added?
diff mbox

Patch

diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index 22df8a0..a3abaf8 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -187,6 +187,9 @@  NEED_MD5=y
  NEED_RC4=y
  else
  CFLAGS += -DCONFIG_NO_WPA -DCONFIG_NO_WPA2
+NEED_AES=y
+NEED_SHA1=y
+NEED_MD5=y
  endif

  ifdef CONFIG_IBSS_RSN