wifi: libertas: IE handling fixes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest4 patches 3 repliesIn review
- v34 patches 6 repliesSuperseded
- v24 patches 2 repliesSuperseded
Changes in v4 from the cover letter
- Do more extensive code style fixes suggested by Ping-Ke Shih
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | wifi: libertas: fix code style in Marvell structsdrivers/ | +10 | 1 reply | |
| 2/4 | wifi: libertas: only add RSN/WPA IE in lbs_add_wpa_tlvdrivers/ | +18 | 0 replies | |
| 3/4 | wifi: libertas: add new TLV type for WPS enrollee IEdrivers/ | +1 | 0 replies | |
| 4/4 | wifi: libertas: add support for WPS enrollee IE in probe requestsdrivers/ | +45 | 0 replies |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Dan Williams | Simon Horman |
|---|---|---|
| Series | R-b T-b | R-b |
| 1/4 | ||
| 2/4 | ||
| 3/4 | ||
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/4] wifi: libertas: IE handling fixes
This series implements two fixes for the libertas driver that restore compatibility with modern wpa_supplicant versions, and adds (or at least improves) support for WPS in the process.
1) Better handling of the RSN/WPA IE in association requests:
The previous logic was always just grabbing the first one, and didn't handle multiple IEs properly, which wpa_supplicant adds nowadays.
2) Support for IEs in scan requests:
Modern wpa_supplicant always adds an "extended capabilities" IE, which violates max_scan_ie_len in this driver. Go ahead and allow scan IEs, and handle WPS based on the info that Dan provided.
These changes have been tested on a Marvell PXA168-based device with a Marvell 88W8686 Wi-Fi chipset. I've confirmed that with these changes applied, modern wpa_supplicant versions connect properly and WPS also works correctly (tested with "wpa_cli -i wlan0 wps_pbc any").
Changes since V3:
- Do more extensive code style fixes suggested by Ping-Ke Shih
Changes since V2:
- Add missing cpu_to_le16 as suggested by Simon Horman
Changes since V1 (which was a single patch linked here [1]):
- Switch to cfg80211_find_*_elem when looking for specific IEs, resulting in cleaner/safer code.
- Use mrvl_ie_data struct for cleaner manipulation of TLV buffer, and fix capitalization of the "data" member to avoid checkpatch warnings.
- Implement idea suggested by Dan to change max_scan_ie_len to be nonzero and enable WPS support in probe requests while we're at it.
- Remove "Fixes:" tag; I'm not sure if it's still appropriate or not with it depending on the capitalization fix.
- Clarify comments.
[1] https://lore.kernel.org/all/[email protected]/
Doug Brown (4):
wifi: libertas: fix code style in Marvell structs
wifi: libertas: only add RSN/WPA IE in lbs_add_wpa_tlv
wifi: libertas: add new TLV type for WPS enrollee IE
wifi: libertas: add support for WPS enrollee IE in probe requests
drivers/net/wireless/marvell/libertas/cfg.c | 76 +++++++++++++++---- drivers/net/wireless/marvell/libertas/types.h | 21 ++--- 2 files changed, 74 insertions(+), 23 deletions(-)
Signature · 1 line
2.34.1