Re: [LEDE-DEV] wifi direct / wifi p2p
To follow up on this... if you install _only_ the wpa-supplicant-p2p package, you can get this to work. (If you install the wpad-full, you cannot, as the multicall binary portion only has the wpad portions running, and the p2p portions are only ever in the supplicant portions) However none of the standard openwrt wireless tools will work. You can't use luci to browse for nearby APs and connect, you can't use any of the uci config to to setup AP mode, even though the wpa-supplicant alone can do that. You can't configure dhcp offers on the p2p-go interface either. So, while you _can_ kinda sorta get it working, it's basically terrible and worthless. Further, despite claims that "legacy" devices will see p2p GO as "just another AP", they don't. The user experience for a phone/laptop user, even after setting it all all up manually with static wpa_supplicant conf files and all the interactive commands required, is just terrible. I'm going to hope that the new DPP replacement/upgrade for p2p/wifi direct actually one day works, and just keep on working around the landmines with traditional AP+STA configurations. Sincerely, Karl Palsson ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH] hostapd: update to git snapshot of 2018-03-13
Update hostapd sources to current git snapshot to get rid of local patches and pave the road towards using WPA3 features. For SAE key management in mesh mode, use the newly introduce sae_password parameter instead of the psk parameter to also support SAE keys which would fail the checks applied on the psk field (ie. length and such). The following patches were merged upstream: 000-hostapd-Avoid-key-reinstallation-in-FT-handshake.patch replaced by commit 0e3bd7ac6 001-Prevent-reinstallation-of-an-already-in-use-group-ke.patch replaced by commit cb5132bb3 002-Extend-protection-of-GTK-IGTK-reinstallation-of-WNM-.patch replaced by commit 87e2db16b 003-Prevent-installation-of-an-all-zero-TK.patch replaced by commit 53bb18cc8 004-Fix-PTK-rekeying-to-generate-a-new-ANonce.patch replaced by commit 0adc9b28b 005-TDLS-Reject-TPK-TK-reconfiguration.patch replaced by commit ff89af96e 006-WNM-Ignore-WNM-Sleep-Mode-Response-without-pending-r.patch replaced by commit adae51f8b 007-FT-Do-not-allow-multiple-Reassociation-Response-fram.patch replaced by commit 2a9c5217b 008-WPA-Extra-defense-against-PTK-reinstalls-in-4-way-ha.patch replaced by commit a00e946c1 009-Clear-PMK-length-and-check-for-this-when-deriving-PT.patch replaced by commit b488a1294 010-Optional-AP-side-workaround-for-key-reinstallation-a.patch replaced by commit 6f234c1e2 011-Additional-consistentcy-checks-for-PTK-component-len.patch replaced by commit a6ea66530 012-Clear-BSSID-information-in-supplicant-state-machine-.patch replaced by commit c0fe5f125 013-WNM-Ignore-WNM-Sleep-Mode-Request-in-wnm_sleep_mode-.patch replaced by commit 114f2830d Some patches had to be modified to work with changed upstream source: 380-disable_ctrl_iface_mib.patch add more ifdef'ery plus some minor knits needed for other patches to apply which are not worth being explicitely listed here. Signed-off-by: Daniel Golle --- Compile tested: ar71xx/generic, ramips/mt7621 Run tested: ramips/mt7621 (MT7603E+MT7612E) package/network/services/hostapd/Makefile | 8 +- package/network/services/hostapd/files/hostapd.sh | 6 +- ...-Avoid-key-reinstallation-in-FT-handshake.patch | 154 - ...nstallation-of-an-already-in-use-group-ke.patch | 244 - ...ection-of-GTK-IGTK-reinstallation-of-WNM-.patch | 182 --- ...03-Prevent-installation-of-an-all-zero-TK.patch | 73 -- ...Fix-PTK-rekeying-to-generate-a-new-ANonce.patch | 56 - .../005-TDLS-Reject-TPK-TK-reconfiguration.patch | 124 --- ...WNM-Sleep-Mode-Response-without-pending-r.patch | 35 --- ...llow-multiple-Reassociation-Response-fram.patch | 68 -- ...efense-against-PTK-reinstalls-in-4-way-ha.patch | 34 --- ...ength-and-check-for-this-when-deriving-PT.patch | 53 - ...-side-workaround-for-key-reinstallation-a.patch | 221 --- ...consistentcy-checks-for-PTK-component-len.patch | 100 - ...-information-in-supplicant-state-machine-.patch | 25 --- ...WNM-Sleep-Mode-Request-in-wnm_sleep_mode-.patch | 35 --- .../hostapd/patches/110-no_eapol_fix.patch | 2 +- .../services/hostapd/patches/200-multicall.patch | 48 ++-- .../services/hostapd/patches/300-noscan.patch | 4 +- .../hostapd/patches/310-rescan_immediately.patch | 2 +- .../hostapd/patches/330-nl80211_fix_set_freq.patch | 2 +- .../patches/350-nl80211_del_beacon_bss.patch | 10 +- .../hostapd/patches/360-ctrl_iface_reload.patch| 10 +- .../hostapd/patches/370-ap_sta_support.patch | 18 +- .../patches/380-disable_ctrl_iface_mib.patch | 53 +++-- .../patches/390-wpa_ie_cap_workaround.patch| 4 +- .../patches/400-wps_single_auth_enc_type.patch | 4 +- .../hostapd/patches/420-indicate-features.patch| 4 +- .../hostapd/patches/430-hostapd_cli_ifdef.patch| 4 +- .../services/hostapd/patches/450-scan_wait.patch | 12 +- ...ant-add-new-config-params-to-be-used-with.patch | 12 +- ...80211-use-new-parameters-during-ibss-join.patch | 4 +- .../patches/463-add-mcast_rate-to-11s.patch| 6 +- .../hostapd/patches/464-fix-mesh-obss-check.patch | 2 +- .../hostapd/patches/600-ubus_support.patch | 52 +++-- 35 files changed, 147 insertions(+), 1524 deletions(-) delete mode 100644 package/network/services/hostapd/patches/000-hostapd-Avoid-key-reinstallation-in-FT-handshake.patch delete mode 100644 package/network/services/hostapd/patches/001-Prevent-reinstallation-of-an-already-in-use-group-ke.patch delete mode 100644 package/network/services/hostapd/patches/002-Extend-protection-of-GTK-IGTK-reinstallation-of-WNM-.patch delete mode 100644 package/network/services/hostapd/patches/003-Prevent-installation-of-an-all-zero-TK.patch delete mode 100644 package/network/services/hostapd/patches/004-Fix-PTK-rekeying-to-generate-a-new-ANonce.patch delete mode 100644 package/network/services/hostapd/patches/005-TDLS-Reject-TPK-TK-reconfiguration.patch delete mo
[LEDE-DEV] [PATCH] usbutils: Update to version 009.
4 patches were added to revert the libudev changes as the libudev wrapper in OpenWrt is not good enough. Signed-off-by: Rosen Penev --- package/utils/usbutils/Makefile| 8 +- .../patches/010-remove-python-usbids.patch | 68 ++ .../patches/020-revert-removal-of-usb.ids.patch| 879 + .../usbutils/patches/030-revert-port-to-hwdb.patch | 529 + .../patches/040-add-back-update-usbids.patch | 66 ++ 5 files changed, 1547 insertions(+), 3 deletions(-) create mode 100644 package/utils/usbutils/patches/010-remove-python-usbids.patch create mode 100644 package/utils/usbutils/patches/020-revert-removal-of-usb.ids.patch create mode 100644 package/utils/usbutils/patches/030-revert-port-to-hwdb.patch create mode 100644 package/utils/usbutils/patches/040-add-back-update-usbids.patch diff --git a/package/utils/usbutils/Makefile b/package/utils/usbutils/Makefile index 7f798954ae..3fbc4e0b50 100644 --- a/package/utils/usbutils/Makefile +++ b/package/utils/usbutils/Makefile @@ -8,15 +8,17 @@ include $(TOPDIR)/rules.mk PKG_NAME:=usbutils -PKG_VERSION:=007 -PKG_RELEASE:=7 +PKG_VERSION:=009 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@KERNEL/linux/utils/usb/usbutils -PKG_HASH:=7593a01724bbc0fd9fe48e62bc721ceb61c76654f1d7b231b3c65f6dfbbaefa4 +PKG_HASH:=8bbff0e54cb5f65a52be4feb9162fc0b022a97eb841b44784f7a89a9ea567160 PKG_LICENSE:=GPL-2.0 PKG_LICENSE_FILES:=COPYING +PKG_FIXUP:=autoreconf + PKG_BUILD_PARALLEL:=1 PKG_INSTALL:=1 diff --git a/package/utils/usbutils/patches/010-remove-python-usbids.patch b/package/utils/usbutils/patches/010-remove-python-usbids.patch new file mode 100644 index 00..19e3cc1dd3 --- /dev/null +++ b/package/utils/usbutils/patches/010-remove-python-usbids.patch @@ -0,0 +1,68 @@ +From a1c2fd7bbd5b2e26f8f752fd3386a953b3b1ec37 Mon Sep 17 00:00:00 2001 +From: Rosen Penev +Date: Fri, 9 Mar 2018 10:31:09 -0800 +Subject: [PATCH] Revert "substitute usb.id location in lsusb Python script" + +This reverts commit 199756013624bfa497865eb498bf7331eb07ef56. +--- + Makefile.am | 7 +-- + lsusb.py.in => lsusb.py | 4 ++-- + 3 files changed, 3 insertions(+), 9 deletions(-) + rename lsusb.py.in => lsusb.py (99%) + mode change 100644 => 100755 + +diff --git a/Makefile.am b/Makefile.am +index b18ff69..67def60 100644 +--- a/Makefile.am b/Makefile.am +@@ -39,13 +39,9 @@ EXTRA_DIST = \ + lsusb.8.in \ + usb-devices.1.in \ + usb-devices \ +- lsusb.py.in \ ++ lsusb.py \ + usbutils.pc.in + +-lsusb.py: $(srcdir)/lsusb.py.in +- sed 's|VERSION|$(VERSION)|g;s|@usbids@|$(datadir)/usb.ids|g' $< >$@ +- chmod 755 $@ +- + lsusb.8: $(srcdir)/lsusb.8.in + sed 's|VERSION|$(VERSION)|g;s|@usbids@|$(datadir)/usb.ids|g' $< >$@ + +@@ -59,7 +55,6 @@ usbutils.pc: $(srcdir)/usbutils.pc.in + sed 's|@usbids@|$(datadir)/usb.ids|g;s|@VERSION[@]|$(VERSION)|g' $< >$@ + + DISTCLEANFILES = \ +- lsusb.py \ + lsusb.8 \ + usb-devices.1 \ + usbutils.pc +diff --git a/lsusb.py.in b/lsusb.py +old mode 100644 +new mode 100755 +similarity index 99% +rename from lsusb.py.in +rename to lsusb.py +index db2e1e0..aa410fc +--- a/lsusb.py.in b/lsusb.py +@@ -1,5 +1,5 @@ + #!/usr/bin/env python +-# lsusb-VERSION.py ++# lsusb.py + # Displays your USB devices in reasonable form. + # (c) Kurt Garloff , 2/2009, GPL v2 or v3. + # (c) Kurt Garloff , 9/2013, GPL v2 or v3. +@@ -18,7 +18,7 @@ warnsort = False + showeps = False + + prefix = "/sys/bus/usb/devices/" +-usbids = "@usbids@" ++usbids = "/usr/share/usb.ids" + + esc = chr(27) + norm = esc + "[0;0m" +-- +2.16.2 + diff --git a/package/utils/usbutils/patches/020-revert-removal-of-usb.ids.patch b/package/utils/usbutils/patches/020-revert-removal-of-usb.ids.patch new file mode 100644 index 00..ae38b06a77 --- /dev/null +++ b/package/utils/usbutils/patches/020-revert-removal-of-usb.ids.patch @@ -0,0 +1,879 @@ +From 2bfca703b324e21aee2fabbe4f998aa663f03a15 Mon Sep 17 00:00:00 2001 +From: Rosen Penev +Date: Fri, 9 Mar 2018 10:31:24 -0800 +Subject: [PATCH] Revert "drop dependency on usb.ids" + +This reverts commit 5d7ea40bc94cbf3069a25beba3146de13bcdcf02. +--- + Makefile.am |27 +- + configure.ac |12 + + lsusb.c |13 +- + names.c | 600 +- + names.h | 2 +- + 5 files changed, 18559 insertions(+), 1775 deletions(-) + delete mode 100644 usb-spec.h + create mode 100644 usb.ids + +diff --git a/Makefile.am b/Makefile.am +index 67def60..31afb20 100644 +--- a/Makefile.am b/Makefile.am +@@ -20,7 +20,6 @@ lsusb_SOURCES = \ + lsusb-t.c \ + list.h \ + names.c names.h \ +- usb-spec.h \ + usbmisc.c usbmisc.h + + lsusb_CPPFLAGS = \ +@@ -31,17 +30,41 @@ lsusb_LDADD = \ + $(LIBUSB_LIBS) \ + $(UDEV_LIBS) + ++if HAVE_ZLIB ++lsusb_CPPFLAGS += -DHAVE_LIBZ ++lsusb_LDADD += -lz ++endif ++ + man_MANS = \ + lsusb.8 \ +