[Bug 264238] WiFi stops working after upgrade from 13.0 to 13.1, AR9285 (wpa_supplicant)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 09 Jun 2022 05:14:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264238

--- Comment #44 from Jaskie <jiangjun12321@yahoo.com> ---
(In reply to Cy Schubert from comment #43)

I am sorry I am having some trouble testing the two patches. I am not very
familiar with the process of applying patches from different branches. However
I followed guidance by J.R. Oldroyd and tried git bisecct.

wpa_supplicant in 13.0 (which is known to work for me) has a date shown by ls
-l as 2021-10-02

And

cd /usr/src
git reset --hard release/13.1.0
cd /usr/src/contrib/wpa
git log .

showed these commits in order:

094f618ca12e42243a6ebcccde3c3f616645e7ba 2022/02/08                             
f3ba7fe0d2202c9a17513982ed5ac767618afbdc 2022/02/08                             
9d04424634024aef04bafa3104f24e0df9f4cce7 2022/01/03                             
0a6760a1de32bf5df91ef926eba25b3f74b4f84f 2021/11/04
e3928ece86ca9cae6734278d4e40673b21fed417 2021/09/04                             

So the 13.0 working wpa happened just after
e3928ece86ca9cae6734278d4e40673b21fed417, which means that something broke wpa
between e3928ece86ca9cae6734278d4e40673b21fed417 (2021/09/04) and
094f618ca12e42243a6ebcccde3c3f616645e7ba (2022/02/08). Next I started to git
bisect by:

cd /usr/src
git bisect start 094f618ca12e42243a6ebcccde3c3f616645e7ba
e3928ece86ca9cae6734278d4e40673b21fed417 -- contrib/wpa

Then there were two steps tests, which I then went through only to fiind out
both failed so at the end I got this:

git bisect bad
0a6760a1de32bf5df91ef926eba25b3f74b4f84f is the first bad commit
commit 0a6760a1de32bf5df91ef926eba25b3f74b4f84f
Author: Cy Schubert <cy@FreeBSD.org>
Date: Fri Sep 3 06:07:19 2021 -0700

    wpa: Import wpa_supplicant/hostapd commits up to b4f7506ff

    Merge vendor commits 40c7ff83e74eabba5a7e2caefeea12372b2d3f9a,
    efec8223892b3e677acb46eae84ec3534989971f, and
    2f6c3ea9600b494d24cac5a38c1cea0ac192245e.

    Tested by: philip

    (cherry picked from commit c1d255d3ffdbe447de3ab875bf4e7d7accc5bfc5)



To double check I also did:

cd /usr/src
git checkout e3928ece86ca9cae6734278d4e40673b21fed417
cd /usr/src/usr.sbin/wpa
make clean
make

and the resulting wpa_supplicant worked as expected.
Hope this information helps, thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.