[Bug 264238] wpa_supplicant fails to associate to open unprotected 802.11n
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264238 --- Comment #106 from Jaskie --- (In reply to Cy Schubert from comment #105) OK. I applied this patch (A better patch), compiled & installed wpa and tested. WiFi still not working. # ifconfig -v wlan0 list scan |grep WHU-STU WHU-STU 70:d9:31:0e:5e:201 54M -83:-96 300 ES SSID RATES DSPARMS<1> COUNTRY ERP<0x2> XRATES<48,72,96,108> RRM_ENCAPS<460571> HTCAP HTINFO EXTCAP<7f0808000440> WME ATH<0x7fff> WHU-STU 70:d9:31:0e:14:a01 54M -88:-96 300 ES SSID RATES DSPARMS<1> COUNTRY ERP<0x2> XRATES<48,72,96,108> RRM_ENCAPS<460571> HTCAP HTINFO EXTCAP<7f0808000440> WME ATH<0x7fff> WHU-STU fc:b6:98:f5:b6:c0 13 54M -87:-95 300 ES SSID RATES DSPARMS<13> TIM<050400010001> COUNTRY ERP<0x0> XRATES<48,72,96,108> RRM_ENCAPS<460571> HTCAP HTINFO EXTCAP<7f0808000440> WME ATH<0x7fff> WHU-STU 70:d9:31:0e:80:a0 13 54M -85:-95 300 ES SSID RATES DSPARMS<13> TIM<050400010001> COUNTRY ERP<0x0> XRATES<48,72,96,108> RRM_ENCAPS<460571> HTCAP HTINFO EXTCAP<7f0808000440> WME ATH<0x7fff> WHU-STU 70:d9:31:0e:2c:005 54M -78:-96 300 ES SSID RATES DSPARMS<5> TIM<050400010001> COUNTRY ERP<0x0> XRATES<48,72,96,108> RRM_ENCAPS<460571> HTCAP HTINFO EXTCAP<7f0808000440> WME ATH<0x7fff> WHU-STU fc:b6:98:f5:cc:005 54M -84:-96 300 ES SSID RATES DSPARMS<5> COUNTRY ERP<0x0> XRATES<48,72,96,108> RRM_ENCAPS<460571> HTCAP HTINFO EXTCAP<7f0808000440> WME ATH<0x7fff> WHU-STU fc:b6:98:f6:01:a05 54M -84:-96 300 ES SSID RATES DSPARMS<5> COUNTRY ERP<0x0> XRATES<48,72,96,108> RRM_ENCAPS<460571> HTCAP HTINFO EXTCAP<7f0808000440> WME ATH<0x7fff> WHU-STU 70:d9:31:0e:19:205 54M -85:-96 300 ES SSID RATES DSPARMS<5> TIM<050400010001> COUNTRY ERP<0x0> XRATES<48,72,96,108> RRM_ENCAPS<460571> HTCAP HTINFO EXTCAP<7f0808000440> WME ATH<0x7fff> WHU-STU fc:b6:98:f6:0a:209 54M -81:-96 300 ES SSID RATES DSPARMS<9> COUNTRY ERP<0x0> XRATES<48,72,96,108> RRM_ENCAPS<460571> HTCAP HTINFO EXTCAP<7f0808000440> WME ATH<0x7fff> WHU-STU 70:d9:31:12:9b:809 54M -88:-96 300 ES SSID RATES DSPARMS<9> COUNTRY ERP<0x0> XRATES<48,72,96,108> RRM_ENCAPS<460571> HTCAP HTINFO EXTCAP<7f0808000440> WME ATH<0x7fff> WHU-STU 70:d9:31:03:06:c09 54M -87:-96 300 ES SSID RATES DSPARMS<9> TIM<050400010001> COUNTRY ERP<0x0> XRATES<48,72,96,108> RRM_ENCAPS<460571> HTCAP HTINFO EXTCAP<7f0808000440> WME ATH<0x7fff> Notice: bssid 70:d9:31:0e:2c:00 is usually the one I connect when using wpa 2.9. /usr/sbin/wpa_supplicant -dd -i wlan0 -c /etc/wpa_supplicant.conf -D bsd output is too long to paste so I uploaded it as an attachment. Thanks all of you for your effort! -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 264238] wpa_supplicant fails to associate to open unprotected 802.11n
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264238 --- Comment #107 from Jaskie --- Created attachment 234808 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234808&action=edit wpa out Output from /usr/sbin/wpa_supplicant -dd -i wlan0 -c /etc/wpa_supplicant.conf -D bsd -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 264238] wpa_supplicant fails to associate to open unprotected 802.11n
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264238 --- Comment #108 from Cy Schubert --- Can you apply the latest patch first, then run the scan again. That patch was in the FreeBSD copy of 2.9 but not in 2.10. To make it easier to capture the output, run this: /usr/sbin/wpa_supplicant -dd -i wlan1 -c /etc/wpa_supplicant.conf.open -D bsd 2>&1 | tee output.file Let it run for 90 seconds or more then hit ctrl-c. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 264238] wpa_supplicant fails to associate to open unprotected 802.11n
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264238 --- Comment #110 from commit-h...@freebsd.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=05a849eec9d949b3de32e464570cefbabcd64702 commit 05a849eec9d949b3de32e464570cefbabcd64702 Author: Cy Schubert AuthorDate: 2022-06-20 14:25:42 + Commit: Cy Schubert CommitDate: 2022-06-20 14:29:09 + */*: Restore a missing wpa BSD driver patch These patches were removed to sync with base where in fact base was missing these patches and base should have been synced with the ports. PR: 264238 Fixes: b8477825c2dc42f6c595697a36f593c71f39fbad c86f32d652eb9dd023049122d8ca37cb13ed07b6 MFH:2022Q2 net/hostapd-devel/Makefile | 2 +- .../files/patch-src_drivers_driver__bsd.c | 65 +- net/hostapd/Makefile | 2 +- net/hostapd/files/patch-src_drivers_driver__bsd.c | 65 +- security/wpa_supplicant-devel/Makefile | 2 +- .../files/patch-src_drivers_driver__bsd.c | 65 +- security/wpa_supplicant/Makefile | 2 +- .../files/patch-src_drivers_driver__bsd.c | 65 +- 8 files changed, 256 insertions(+), 12 deletions(-) -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 264238] wpa_supplicant fails to associate to open unprotected 802.11n
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264238 --- Comment #109 from commit-h...@freebsd.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3b2956781048f300c081952150d515573a274620 commit 3b2956781048f300c081952150d515573a274620 Author: Cy Schubert AuthorDate: 2022-06-20 14:21:55 + Commit: Cy Schubert CommitDate: 2022-06-20 14:25:35 + wpa: Restore missing patch In December after a failed MFV due to a now understood issue I had with git -- git aborts with extremely large MFV -- this patch was removed during the revert. Restore this patch. PR: 264238 Fixes: 4b72b91a7132df1f77bbae194e1071ac621f1edb MFC after: 1 week contrib/wpa/src/drivers/driver_bsd.c | 24 1 file changed, 24 insertions(+) -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 264238] wpa_supplicant fails to associate to open unprotected 802.11n
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264238 --- Comment #111 from commit-h...@freebsd.org --- A commit in branch 2022Q2 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=52efc7630680ad1445bf062b25d1f868e26e4d0d commit 52efc7630680ad1445bf062b25d1f868e26e4d0d Author: Cy Schubert AuthorDate: 2022-06-20 14:25:42 + Commit: Cy Schubert CommitDate: 2022-06-20 15:12:01 + */*: Restore a missing wpa BSD driver patch These patches were removed to sync with base where in fact base was missing these patches and base should have been synced with the ports. PR: 264238 Fixes: b8477825c2dc42f6c595697a36f593c71f39fbad c86f32d652eb9dd023049122d8ca37cb13ed07b6 MFH:2022Q2 (cherry picked from commit 05a849eec9d949b3de32e464570cefbabcd64702) net/hostapd-devel/Makefile | 2 +- .../files/patch-src_drivers_driver__bsd.c | 65 +- net/hostapd/Makefile | 2 +- net/hostapd/files/patch-src_drivers_driver__bsd.c | 65 +- security/wpa_supplicant-devel/Makefile | 2 +- .../files/patch-src_drivers_driver__bsd.c | 65 +- security/wpa_supplicant/Makefile | 2 +- .../files/patch-src_drivers_driver__bsd.c | 65 +- 8 files changed, 256 insertions(+), 12 deletions(-) -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 264238] wpa_supplicant fails to associate to open unprotected 802.11n
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264238 --- Comment #112 from commit-h...@freebsd.org --- A commit in branch 2022Q2 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=c82d2efea691ec4d8eac6a875eb0fe182106bf99 commit c82d2efea691ec4d8eac6a875eb0fe182106bf99 Author: Cy Schubert AuthorDate: 2022-06-19 16:15:44 + Commit: Cy Schubert CommitDate: 2022-06-20 15:11:55 + */*: Bring back wpa_supplicant29 and hostapd29 as new ports The current wpa_supplicant and hostapd have an issue with AR9285. For the time being bring back wpa_supplicant 2.9 as security/wpa_supplicant29 and hostpd 2.9 as net/hostapd29 for those cases that have an issue with wpa_supplicant/hostpad2.10 (in base and in ports) PR: 264238 (cherry picked from commit 7150a0c9b1014e445a8266c9080d0bf4738dcc9c) net/Makefile | 1 + net/hostapd29/Makefile (new) | 46 +++ net/hostapd29/distinfo (new) | 9 + net/hostapd29/files/config (new) | 316 ++ net/hostapd29/files/hostapd.in (new) | 39 +++ .../patch-src-l2_packet-l2_packet_freebsd.c (new) | 14 + net/hostapd29/files/patch-src_common_dhcp.h (new) | 25 ++ .../files/patch-src_drivers_driver__bsd.c (new)| 60 net/hostapd29/files/patch-src_utils_os.h (new) | 17 + .../files/patch-src_utils_os__unix.c (new) | 18 + .../files/patch-src_wps_wps__upnp.c (new) | 20 ++ net/hostapd29/pkg-descr (new) | 12 + net/hostapd29/pkg-message (new)| 10 + security/Makefile | 1 + security/wpa_supplicant29/Makefile (new) | 229 + security/wpa_supplicant29/distinfo (new) | 11 + security/wpa_supplicant29/files/Packet32.c (new) | 366 + security/wpa_supplicant29/files/Packet32.h (new) | 65 security/wpa_supplicant29/files/ntddndis.h (new) | 32 ++ .../files/patch-src_common_dhcp.h (new)| 25 ++ .../files/patch-src_drivers_driver__bsd.c (new)| 48 +++ .../files/patch-src_drivers_driver__ndis.c (new) | 89 + ...atch-src_l2__packet_l2__packet__freebsd.c (new) | 12 + .../files/patch-src_radius_radius__client.c (new) | 12 + .../files/patch-src_wps_wps__upnp.c (new) | 34 ++ .../files/patch-wpa__supplicant_Makefile (new) | 17 + .../files/patch-wpa__supplicant_main.c (new) | 33 ++ .../patch-wpa__supplicant_wpa__supplicant.c (new) | 16 + .../wpa_supplicant29/files/pkg-message.in (new)| 11 + .../wpa_supplicant29/files/wpa_supplicant.in (new) | 54 +++ security/wpa_supplicant29/pkg-descr (new) | 14 + security/wpa_supplicant29/pkg-plist (new) | 5 + 32 files changed, 1661 insertions(+) -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 264238] wpa_supplicant fails to associate to open unprotected 802.11n
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264238 --- Comment #113 from Jaskie --- (In reply to Cy Schubert from comment #108) (In reply to Cy Schubert from comment #108) Sorry I don't really understand what you mean by "apply the latest patch first". So I did the following test: 1. Download patch from #Comment104 as p1, patch from #Comment107 as p2 2. service netif stop 3. revert /usr/src to release-13.1.0 4. git apply p1 5. compile and test wpa, output wpa_out1.txt (uploaded as attachment) 6. git apply p2 (if I understand it right, this means p2 + p1) 7. compile wpa But I didn't succeed at step 7, wpa failed to compile at make: ld: error: undefined symbol: bsd_get_iface_flags >>> referenced by driver_bsd.c:1137 >>> (/usr/src/contrib/wpa/src/drivers/driver_bsd.c:1137) >>> driver_bsd.o:(wpa_driver_bsd_associate) cc: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. make[1]: stopped in /usr/src/usr.sbin/wpa/wpa_supplicant *** Error code 1 -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 264238] wpa_supplicant fails to associate to open unprotected 802.11n
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264238 --- Comment #114 from Jaskie --- Created attachment 234816 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234816&action=edit wpa out p1 -- You are receiving this mail because: You are on the CC list for the bug.