Send users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://rt2x00.serialmonkey.com/mailman/listinfo/users_rt2x00.serialmonkey.com
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of users digest..."
Today's Topics:
1. Modifications to RT5572_LinuxSTA_2.6.1.3_20121022 to get it
working with actual kernels. Included actual support for cfg80211
and 802.11w (management frame protection) / Part 1/2
(Andreas Hartmann)
----------------------------------------------------------------------
Message: 1
Date: Wed, 14 Jan 2015 09:25:07 +0100
From: Andreas Hartmann <[email protected]>
To: [email protected]
Subject: [rt2x00-users] Modifications to
RT5572_LinuxSTA_2.6.1.3_20121022 to get it working with actual
kernels. Included actual support for cfg80211 and 802.11w (management
frame protection) / Part 1/2
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
Hi,
I attached a complete patch divided into two parts to the existing
original DPO_RT5572_LinuxSTA_2.6.1.3_20121022 driver to add some
interesting additional functionality.
To get them working, you have to apply both parts of the patch. Part 2
is part oft the second mail.
Sorry for the lengthy patch, but I think for people it is good to have
all in one and I think developer don't have a problem to categorize the
different hunks based on the description below.
I think rt5572sta is an interesting driver, because it covers a wide
range of USB WLAN devices from Ralink (today Mediatek). Probably you
have to add your own USB ID to common/rtusb_dev_id.c.
Would be really nice, if Mediatek would provide an own updated new
version of this driver, which covers all the things (and surely better
and more as I did it), because it covers a lot of devices!
Hints / limitations:
CFG80211 interface (instead of wext):
- Fixed existing implementation by covering incompatible API changes
since Linux ~ 2.6.38. Don't know if they match all possible
situations.
- Backports are partly based on MT7612U_DPO_LinuxSTA_3.0.0.1_20140718.
- Only STA support for managed networks w/ AP - no AP support, no P2P,
...
- Implemented for use with wpa_supplicant 2.3. Don't know if it works
with networkmanager, too.
MFP (management frame protection / 802.11w):
- Backport from newer existing Ralink drivers, like
MT7612U_DPO_LinuxSTA_3.0.0.1_20140718.
- It is meant to use with interface cfg80211.
- MFP-support can be enabled with wpa_supplicant (ieee80211w e.g.).
- HW-support for IGTK is not implemented.
- MFP-support needs potentially SW-Encryption only (means: HW
encryption is turned off). Some chips are able to distinct between
decryption for Mgmt frames and data frames (means: encrypted mgmt
frames are passed through to the driver without being decrypted by
the hardware).
This is true for RT3593 like Linksys AE3000. This chipset is
explicitly covered in the patch.
Software encryption only is not implemented (for use w/ cfg80211
interface here) as it would most probably require to change the key
management completely (pairwise and group key mustn't be set to
hardware probably). I didn't implement / test this feature.
If you want to test, if your device behaves like RT3593, you could
test it by extending the if (! IS_RT3593(pAd) || ! IS_RT...(pAd)) in
common/cmm_data.c around line 2900.
- RT3572 chips e.g. are known to *not* work w/ this implementation,
because it can't distinct between encrypted data and mgmt frames.
This chip would require full SW encryption support.
Generally:
- Added (and fixed) SHA256-keymanagement support (for EAP-TLS, e.g.).
It needs wpa_supplicant > 2.0 (not sure if 2.1 or 2.2 works - I
didn't test it) and libnl 3.2(?)
- If CFG80211-support is activated in config.mk (as done in the
patch), the wext-interface doesn't work anymore. You must use
CFG80211 (nl80211). If you want to use wext, you mustn't activate
cfg80211-support.
- 802.11w support is enabled by the patch, too. But you can run the
driver afterwards w/o MFP support, too - even if it is compiled in. I
didn't test, if it compiles w/o 802.11w support enabled.
- WEXT-enabled kernel is always needed at compile time, even if
compiled with CFG80211-support.
- It is possible to set RTDebugLevel in /linux/rt_linux.c from 0 to
RT_DEBUG_ERROR or RT_DEBUG_TRACE (this level even prints keys!!).
- Removed CONFIG_MULTI_CHANNEL as it doesn't compile at all (here).
- Added some dump functions like dump_txblk e.g.
- Added some compile warning fixes
- Added NET_SKBUFF_DATA_USES_OFFSET
- Added #ifdefs to check for use of uidgid.h - don't know if they cover
each possible kernel config. Maybe you have to change it for your
needs.
- Added USB Device ID Linksys AE3000
- There are modifications in sta/rtmp_data.c, which cover problems w/
EAP-TLS. The modifications are derived on base of
RT5572_LinuxSTA_2.6.0.1 by reverting the changes done in 2.6.1.3
(hunk 11, 12, 13, 14, 15, 16 of the attached patch). Don't know if
these changes are necessary at all for WPA2-PSK e.g. and can't say,
if they would disturb WPA2-PSK-functionality. If normal operation w/o
MFP enabled in wpa_supplicant does not work, I would try to not apply
those hanks and test again.
Known to work / tested with:
- Tested with Linksys AE3000 / RT3593.
- Linux 3.16.x and 3.17.x (64 bit)
- 802.11n, 40MHz, EAP-TLS, key_mgmt WPA-EAP-SHA256 / WPA-EAP
- wpa_supplicant 2.3, libnl 3.2
- Resume from S2RAM / S2DISK does work.
- AP: hostapd based on GIT e48635cfb02dc49bad2783605db71ac2b1833264
(2-Dec-2014)
All work is done w/o any guarantee to work (properly). For me it works
perfectly as expected and I did several air traces and load testes to
verify the functionality as good as possible.
Kind regards,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DPO_RT5572_LinuxSTA_2.6.1.3_20121022-part1.diff.xz
Type: application/x-xz
Size: 24912 bytes
Desc: not available
URL:
<http://rt2x00.serialmonkey.com/pipermail/users_rt2x00.serialmonkey.com/attachments/20150114/2b169956/attachment.bin>
------------------------------
Subject: Digest Footer
_______________________________________________
users mailing list
[email protected]
http://rt2x00.serialmonkey.com/mailman/listinfo/users_rt2x00.serialmonkey.com
------------------------------
End of users Digest, Vol 71, Issue 3
************************************