* How to use software encryption with WEP and mac80211
@ 2007-08-11 3:25 Larry Finger
2007-08-11 9:42 ` Michael Buesch
0 siblings, 1 reply; 6+ messages in thread
From: Larry Finger @ 2007-08-11 3:25 UTC (permalink / raw)
To: wireless
What do I need to do to get mac80211 to do software encryption for WEP? My port of the PHY code from
bcm43xx and the mac80211 front end works with WPA encryption. With WEP, it authenticates and
associates, but never gets an IP number from DHCP. That indicates to me that the encryption is not
set up correctly. I looked through the various definitions in include/net/mac80211.h, but nothing
seems to apply.
Thanks,
Larry
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to use software encryption with WEP and mac80211
2007-08-11 3:25 How to use software encryption with WEP and mac80211 Larry Finger
@ 2007-08-11 9:42 ` Michael Buesch
2007-08-11 15:05 ` Larry Finger
0 siblings, 1 reply; 6+ messages in thread
From: Michael Buesch @ 2007-08-11 9:42 UTC (permalink / raw)
To: Larry Finger; +Cc: wireless
On Saturday 11 August 2007 05:25:11 Larry Finger wrote:
> What do I need to do to get mac80211 to do software encryption for WEP? My port of the PHY code from
> bcm43xx and the mac80211 front end works with WPA encryption. With WEP, it authenticates and
> associates, but never gets an IP number from DHCP. That indicates to me that the encryption is not
> set up correctly. I looked through the various definitions in include/net/mac80211.h, but nothing
> seems to apply.
Which hw enc code do you use in that tree? The old softmac crap
or my new code from bcm43xx-mac80211?
Anyway, if you want to disable hw enc, always set the force sw enc bit
in the set_key function and return early:
key->flags |= IEEE80211_KEY_FORCE_SW_ENCRYPT;
return 0;
--
Greetings Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to use software encryption with WEP and mac80211
2007-08-11 9:42 ` Michael Buesch
@ 2007-08-11 15:05 ` Larry Finger
2007-08-11 15:15 ` Michael Buesch
0 siblings, 1 reply; 6+ messages in thread
From: Larry Finger @ 2007-08-11 15:05 UTC (permalink / raw)
To: Michael Buesch; +Cc: wireless
Michael Buesch wrote:
> On Saturday 11 August 2007 05:25:11 Larry Finger wrote:
>> What do I need to do to get mac80211 to do software encryption for WEP? My port of the PHY code from
>> bcm43xx and the mac80211 front end works with WPA encryption. With WEP, it authenticates and
>> associates, but never gets an IP number from DHCP. That indicates to me that the encryption is not
>> set up correctly. I looked through the various definitions in include/net/mac80211.h, but nothing
>> seems to apply.
>
> Which hw enc code do you use in that tree? The old softmac crap
> or my new code from bcm43xx-mac80211?
I had stripped out all the key stuff, but before that it was from bcm43xx-mac80211.
> Anyway, if you want to disable hw enc, always set the force sw enc bit
> in the set_key function and return early:
>
> key->flags |= IEEE80211_KEY_FORCE_SW_ENCRYPT;
> return 0;
This doesn't seem to work. I had tried it before. I guess I put your code back in again.
Thanks,
Larry
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to use software encryption with WEP and mac80211
2007-08-11 15:05 ` Larry Finger
@ 2007-08-11 15:15 ` Michael Buesch
2007-08-11 15:26 ` Larry Finger
2007-08-11 16:55 ` Larry Finger
0 siblings, 2 replies; 6+ messages in thread
From: Michael Buesch @ 2007-08-11 15:15 UTC (permalink / raw)
To: Larry Finger; +Cc: wireless
On Saturday 11 August 2007 17:05:28 Larry Finger wrote:
> Michael Buesch wrote:
> > On Saturday 11 August 2007 05:25:11 Larry Finger wrote:
> >> What do I need to do to get mac80211 to do software encryption for WEP? My port of the PHY code from
> >> bcm43xx and the mac80211 front end works with WPA encryption. With WEP, it authenticates and
> >> associates, but never gets an IP number from DHCP. That indicates to me that the encryption is not
> >> set up correctly. I looked through the various definitions in include/net/mac80211.h, but nothing
> >> seems to apply.
> >
> > Which hw enc code do you use in that tree? The old softmac crap
> > or my new code from bcm43xx-mac80211?
>
> I had stripped out all the key stuff, but before that it was from bcm43xx-mac80211.
>
> > Anyway, if you want to disable hw enc, always set the force sw enc bit
> > in the set_key function and return early:
> >
> > key->flags |= IEEE80211_KEY_FORCE_SW_ENCRYPT;
> > return 0;
>
> This doesn't seem to work. I had tried it before. I guess I put your code back in again.
bcm43xx-mac80211 hwenc code does not work with v3 firmware.
There is no working hwenc code for v3 firmware.
The above code should work to enable swenc, unless there's a bug in mac80211.
--
Greetings Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to use software encryption with WEP and mac80211
2007-08-11 15:15 ` Michael Buesch
@ 2007-08-11 15:26 ` Larry Finger
2007-08-11 16:55 ` Larry Finger
1 sibling, 0 replies; 6+ messages in thread
From: Larry Finger @ 2007-08-11 15:26 UTC (permalink / raw)
To: Michael Buesch; +Cc: wireless
Michael Buesch wrote:
> On Saturday 11 August 2007 17:05:28 Larry Finger wrote:
>> This doesn't seem to work. I had tried it before. I guess I put your code back in again.
>
> bcm43xx-mac80211 hwenc code does not work with v3 firmware.
> There is no working hwenc code for v3 firmware.
>
> The above code should work to enable swenc, unless there's a bug in mac80211.
Thanks. That saves a lot of work. Now I know where to look.
Larry
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to use software encryption with WEP and mac80211
2007-08-11 15:15 ` Michael Buesch
2007-08-11 15:26 ` Larry Finger
@ 2007-08-11 16:55 ` Larry Finger
1 sibling, 0 replies; 6+ messages in thread
From: Larry Finger @ 2007-08-11 16:55 UTC (permalink / raw)
To: Michael Buesch; +Cc: wireless
Michael Buesch wrote:
> On Saturday 11 August 2007 17:05:28 Larry Finger wrote:
>> Michael Buesch wrote:
>>> On Saturday 11 August 2007 05:25:11 Larry Finger wrote:
>>>> What do I need to do to get mac80211 to do software encryption for WEP? My port of the PHY code from
>>>> bcm43xx and the mac80211 front end works with WPA encryption. With WEP, it authenticates and
>>>> associates, but never gets an IP number from DHCP. That indicates to me that the encryption is not
>>>> set up correctly. I looked through the various definitions in include/net/mac80211.h, but nothing
>>>> seems to apply.
>>> Which hw enc code do you use in that tree? The old softmac crap
>>> or my new code from bcm43xx-mac80211?
>> I had stripped out all the key stuff, but before that it was from bcm43xx-mac80211.
>>
>>> Anyway, if you want to disable hw enc, always set the force sw enc bit
>>> in the set_key function and return early:
>>>
>>> key->flags |= IEEE80211_KEY_FORCE_SW_ENCRYPT;
>>> return 0;
>> This doesn't seem to work. I had tried it before. I guess I put your code back in again.
>
> bcm43xx-mac80211 hwenc code does not work with v3 firmware.
> There is no working hwenc code for v3 firmware.
>
> The above code should work to enable swenc, unless there's a bug in mac80211.
It wasn't a bug in mac80211. In fact, it forces software encryption if the set_key callback is not
specified. My problem was that the hw->flags were wrong in the initial registration of the iface.
Both WEP and WPA are working now.
Larry
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-08-11 16:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-11 3:25 How to use software encryption with WEP and mac80211 Larry Finger
2007-08-11 9:42 ` Michael Buesch
2007-08-11 15:05 ` Larry Finger
2007-08-11 15:15 ` Michael Buesch
2007-08-11 15:26 ` Larry Finger
2007-08-11 16:55 ` Larry Finger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).