Opened 2 years ago

Closed 2 years ago

Last modified 23 months ago

#17458 closed bug (fixed)

no wifi anymore after latest update

Reported by: tojoko Owned by: waddlesplash
Priority: high Milestone: Unscheduled
Component: Network & Internet/Wireless Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by kallisti5)

i don't know if that is any help, but Alex said it probably would. hrev55697 still works like charm (x86).

Attachments (3)

syslog.old (512.1 KB ) - added by tojoko 2 years ago.
previous_syslog (118.9 KB ) - added by tojoko 2 years ago.
wlan_scan_verbose.txt (42.0 KB ) - added by pulkomandy 2 years ago.
Syslog with extra tracing for scan enabled

Download all attachments as: .zip

Change History (26)

by tojoko, 2 years ago

Attachment: syslog.old added

by tojoko, 2 years ago

Attachment: previous_syslog added

comment:1 by kallisti5, 2 years ago

Description: modified (diff)

hrev55697

KERN: [atheroswifi] (ath) bus_alloc_resource(3, [16], 0x0, 0xffffffff, 0x1,0x2)
2830	KERN: set MTRRs to:
2831	KERN:   mtrr:  0: base: 0x3f6b0000, size:    0x10000, type: 0
2832	KERN:   mtrr:  1: base: 0x3f6c0000, size:    0x40000, type: 0
2833	KERN:   mtrr:  2: base: 0x80000000, size: 0x80000000, type: 0
2834	KERN:   mtrr:  3: base: 0x3f800000, size:   0x800000, type: 1
2835	KERN: [atheroswifi] (ath) bus_alloc_resource(1, [0], 0x0, 0xffffffff, 0x1,0x6)
2836	KERN: [atheroswifi] (ath) RX timestamp: 32 bits
2837	KERN: [atheroswifi] (ath) TX timestamp: 32 bits
2838	KERN: [atheroswifi] (ath) [HT] enabling HT modes
2839	KERN: [atheroswifi] (ath) [HT] 1 stream STBC receive enabled
2840	KERN: [atheroswifi] (ath) [HT] 1 stream STBC transmit enabled
2841	KERN: [atheroswifi] (ath) [HT] 2 RX streams; 2 TX streams
2842	KERN: ieee80211_sysctl_attach not implemented, yet.
2843	KERN: : [atheroswifi] 11b rates: KERN: 1Mbps 2Mbps 5.5Mbps 11Mbps
2844	KERN: : [atheroswifi] 11g rates: KERN: 1MbpsKERN:  2MbpsKERN:  5.5MbpsKERN:  11MbpsKERN:  6MbpsKERN:  9MbpsKERN:  12MbpsKERN:  18MbpsKERN:  24MbpsKERN:  36MbpsKERN:  48MbpsKERN:  54MbpsKERN:
2845	KERN: : KERN: [atheroswifi] 2T2R
2846	KERN: : KERN: [atheroswifi] 11ng MCS 20MHz
2847	KERN: : KERN: [atheroswifi] MCS 0-7: 6.5Mbps - 65Mbps
2848	KERN: : KERN: [atheroswifi] MCS 8-15: 13Mbps - 130Mbps
2849	KERN: : KERN: [atheroswifi] 11ng MCS 40MHz:
2850	KERN: : KERN: [atheroswifi] MCS 0-7: 13.5Mbps - 135Mbps
2851	KERN: : KERN: [atheroswifi] MCS 8-15: 27Mbps - 270Mbps
2852	KERN: : [atheroswifi] 11ng MCS 40MHz SGI:
2853	KERN: : [atheroswifi] MCS 0-7: 15Mbps - 150Mbps
2854	KERN: : [atheroswifi] MCS 8-15: 30Mbps - 300Mbps
2855	KERN: [atheroswifi] (ath) AR9280 mac 128.2 RF5133 phy 13.0
2856	KERN: [atheroswifi] (ath) 2GHz radio: 0x0000; 5GHz radio: 0x00c0
2857	KERN: [atheroswifi] (ath) Use hw queue 1 for WME_AC_BE traffic
2858	KERN: [atheroswifi] (ath) Use hw queue 0 for WME_AC_BK traffic
2859	KERN: [atheroswifi] (ath) Use hw queue 2 for WME_AC_VI traffic
2860	KERN: [atheroswifi] (ath) Use hw queue 3 for WME_AC_VO traffic
2861	KERN: [atheroswifi] (ath) Use hw queue 8 for CAB traffic
2862	KERN: [atheroswifi] (ath) Use hw queue 9 for beacons
2863	KERN: [atheroswifi] (ath) using multicast key search
2864	KERN: if_initname(0x829ff800, wlan, 14)
2865	KERN: [atheroswifi] atheroswifi: /dev/net/atheroswifi/0
2866	KERN: [net/atheroswifi/0] ieee80211_node_vattach: init 2 auth 12 run 20 probe 2
2867	KERN: [net/atheroswifi/0] ieee80211_vap_attach: STA parent  flags 0x400c2008 flags_ext 0x2
2868	KERN: [net/atheroswifi/0] ieee80211_alloc_node 0x81740000<00:23:08:d0:69:69> in station table
2869	KERN: [net/atheroswifi/0] [00:23:08:d0:69:69] ieee80211_alloc_node: inact_reload 2
2870	KERN: ifmedia_add: Adding Entry...
2871	KERN:   Type: IEEE 802.11 Wireless Ethernet
2872	KERN:   Mode: autoselect
2873	KERN:   SubType: autoselect
2874	KERN: ifmedia_add: Adding Entry...
2875	KERN:   Type: IEEE 802.11 Wireless Ethernet
2876	KERN:   Mode: 11b
2877	KERN:   SubType: autoselect
.
.
3006	KERN: ifmedia_set: target   Type: IEEE 802.11 Wireless Ethernet
3007	KERN:   Mode: autoselect
3008	KERN:   SubType: autoselect
3009	KERN: ifmedia_set: setting to   Type: IEEE 802.11 Wireless Ethernet
3010	KERN:   Mode: autoselect
3011	KERN:   SubType: autoselect
3012	KERN: if_attach 0xe00156dc
3013	KERN: start_wlan: wlan started.
3014	KERN: atheroswifi: init_driver(0xde967348)
3023	KERN: [net/atheroswifi/0] compat_open(0x2)
3024	KERN: [net/atheroswifi/0] ieee80211_init
3025	KERN: [net/atheroswifi/0] start running, 0 vaps running
3026	KERN: ieee80211_notify_ifnet_change not implemented, yet.
3027	KERN: [net/atheroswifi/0] ieee80211_start_locked: up parent
3028	KERN: [net/atheroswifi/0] start running, 1 vaps running
3029	KERN: [net/atheroswifi/0] ieee80211_new_state_locked: INIT -> SCAN (nrunning 0 nscanning 0)
3030	KERN: /dev/net/atheroswifi/0: media change, media 0x200a0 quality 1000 speed 0
3031	KERN: [net/atheroswifi/0] start running, 1 vaps running
3032	KERN: [net/atheroswifi/0] ieee80211_new_state_locked: pending INIT -> SCAN transition lost
3033	KERN: [net/atheroswifi/0] ieee80211_new_state_locked: INIT -> SCAN (nrunning 0 nscanning 0)
3034	KERN: [net/atheroswifi/0] ieee80211_newstate_cb: INIT -> SCAN arg 0
3035	KERN: [net/atheroswifi/0] sta_newstate: INIT -> SCAN (0)
3040	KERN: /dev/net/atheroswifi/0: media change, media 0x300a0 quality 1000 speed 0
3391    KERN: /dev/net/atheroswifi/0: media change, media 0x200a0 quality 1000 speed 0
3393    KERN: /dev/net/atheroswifi/0: media change, media 0x300a0 quality 1000 speed 0
KERN: /dev/net/atheroswifi/0: media change, media 0x200a0 quality 1000 speed 0
3865	KERN: register_domain(4, link)
3866	KERN: /dev/net/atheroswifi/0: media change, media 0x300a0 quality 1000 speed 0
3867	KERN: /dev/net/atheroswifi/0: media change, media 0x200a0 quality 1000 speed 0
3868	KERN: /dev/net/atheroswifi/0: media change, media 0x300a0 quality 1000 speed 0
3869	KERN: /dev/net/atheroswifi/0: media change, media 0x200a0 quality 1000 speed 0
3870	KERN: /dev/net/atheroswifi/0: media change, media 0x300a0 quality 1000 speed 0
3871	KERN: /dev/net/atheroswifi/0: media change, media 0x200a0 quality 1000 speed 0
3872	KERN: /dev/net/atheroswifi/0: media change, media 0x300a0 quality 1000 speed 0
3873	KERN: wlan_control: 9235, 15
3874	KERN: wlan_control: 9235, 76
3875	KERN: Last message repeated 5 times.
3876	KERN: wlan_control: 9235, 78
3877	KERN: wlan_control: 9235, 76
3878	KERN: register_domain(9, unix)
3879	KERN: wlan_control: 9235, 16
3880	KERN: wlan_control: 9235, 17
3881	KERN: wlan_control: 9235, 26
3882	KERN: wlan_control: 9235, 98
3883	KERN: wlan_close(0x829ff800)
3884	KERN: [net/atheroswifi/0] stop running, 1 vaps running
3885	KERN: [net/atheroswifi/0] ieee80211_new_state_locked: SCAN -> INIT (nrunning 0 nscanning 0)
3886	KERN: ieee80211_notify_ifnet_change not implemented, yet.
3887	KERN: [net/atheroswifi/0] down parent
3888	KERN: ieee80211_notify_scan_done
3889	KERN: [net/atheroswifi/0] ieee80211_newstate_cb: SCAN -> INIT arg -1
3890	KERN: [net/atheroswifi/0] sta_newstate: SCAN -> INIT (-1)
3891	KERN: [net/atheroswifi/0] node_reclaim: remove 0x81740000<00:23:08:d0:69:69> from station table, refcnt 2
3892	KERN: wlan_control: 9235, 78
3893	KERN: [net/atheroswifi/0] ieee80211_alloc_node 0x81b00000<00:23:08:d0:69:69> in station table
3894	KERN: wlan_control: 9235, 76
3895	KERN: [net/atheroswifi/0] [00:23:08:d0:69:69] ieee80211_alloc_node: inact_reload 2
3896	KERN: wlan_control: 9235, 78
3897	KERN: wlan_control: 9235, 76
3898	KERN: wlan_control: 9234, 20
3899	KERN: Last message repeated 3 times.
3900	KERN: wlan_control: 9234, 25
3901	KERN: wlan_control: 9235, 76
3902	KERN: ifmedia_ioctl: switching wlan to KERN:   Type: IEEE 802.11 Wireless Ethernet
3903	KERN:   Mode: autoselect
3904	KERN:   SubType: autoselect
3905	KERN: wlan_control: 9234, 16
3906	KERN: wlan_control: 9234, 17
3907	KERN: wlan_control: 9234, 26
3908	KERN: wlan_open(0x829ff800)
3909	KERN: [net/atheroswifi/0] ieee80211_init
3910	KERN: [net/atheroswifi/0] start running, 0 vaps running
3911	KERN: ieee80211_notify_ifnet_change not implemented, yet.
3912	KERN: [net/atheroswifi/0] ieee80211_start_locked: up parent
3913	KERN: [net/atheroswifi/0] start running, 1 vaps running
3914	KERN: wlan_control: 9234, 103
3915	KERN: [net/atheroswifi/0] ieee80211_new_state_locked: INIT -> SCAN (nrunning 0 nscanning 0)
3916	KERN: [net/atheroswifi/0] start running, 1 vaps running
3917	KERN: [net/atheroswifi/0] ieee80211_newstate_cb: INIT -> SCAN arg 0
3918	KERN: [net/atheroswifi/0] sta_newstate: INIT -> SCAN (0)
3919	KERN: ieee80211_notify_scan_done
3920	KERN: wlan_control: 9235, 76
3921	KERN: ifmedia_ioctl: switching wlan to   Type: IEEE 802.11 Wireless Ethernet
3922	KERN:   Mode: autoselect
3923	KERN:   SubType: autoselect
3924	KERN: wlan_control: 9234, 18
3925	KERN: wlan_control: 9234, 7
3926	KERN: wlan_control: 9234, 95
3927	KERN: wlan_control: 9234, 17
3928	KERN: wlan_control: 9234, 26
3929	KERN: wlan_open(0x829ff800)
3930	KERN: [net/atheroswifi/0] ieee80211_init
3931	KERN: [net/atheroswifi/0] start running, 1 vaps running
3932	KERN: wlan_control: 9234, 21
3933	KERN: [net/atheroswifi/0] [e0:28:6d:f8:4d:f8] station assoc via MLME
3934	KERN: [net/atheroswifi/0] ieee80211_alloc_node 0x81740000<e0:28:6d:f8:4d:f8> in station table
3935	KERN: [net/atheroswifi/0] [e0:28:6d:f8:4d:f8] ieee80211_alloc_node: inact_reload 2
3936	KERN: [net/atheroswifi/0] [e0:28:6d:f8:4d:f8] switch station to HT20 channel 2412/0x10480
3937	KERN: [net/atheroswifi/0] node_reclaim: remove 0x81b00000<00:23:08:d0:69:69> from station table, refcnt 0
3938	KERN: [net/atheroswifi/0] set WME_AC_BE (chan) [acm 0 aifsn 3 logcwmin 4 logcwmax 10 txop 0]
3939	KERN: [net/atheroswifi/0] set WME_AC_BE (bss ) [acm 0 aifsn 3 logcwmin 4 logcwmax 10 txop 0]
3940	KERN: [net/atheroswifi/0] set WME_AC_BK (chan) [acm 0 aifsn 7 logcwmin 4 logcwmax 10 txop 0]
3941	KERN: [net/atheroswifi/0] set WME_AC_BK (bss ) [acm 0 aifsn 7 logcwmin 4 logcwmax 10 txop 0]
3942	KERN: [net/atheroswifi/0] set WME_AC_VI (chan) [acm 0 aifsn 2 logcwmin 3 logcwmax 4 txop 94]
3943	KERN: [net/atheroswifi/0] set WME_AC_VI (bss ) [acm 0 aifsn 2 logcwmin 3 logcwmax 4 txop 94]
3944	KERN: [net/atheroswifi/0] set WME_AC_VO (chan) [acm 0 aifsn 2 logcwmin 2 logcwmax 3 txop 47]
3945	KERN: [net/atheroswifi/0] set WME_AC_VO (bss ) [acm 0 aifsn 2 logcwmin 2 logcwmax 3 txop 47]
3946	KERN: [net/atheroswifi/0] update WME_AC_BE (chan+bss) [acm 0 aifsn 2 logcwmin 4 logcwmax 10 txop 64]
3947	KERN: [net/atheroswifi/0] ieee80211_wme_updateparams_locked: WME params updated, cap_info 0xfe
3948	KERN: [net/atheroswifi/0] ieee80211_new_state_locked: SCAN -> AUTH (nrunning 0 nscanning 0)
3949	KERN: [net/atheroswifi/0] ieee80211_newstate_cb: SCAN -> AUTH arg 192
3950	KERN: [net/atheroswifi/0] sta_newstate: SCAN -> AUTH (192)
3951	KERN: [net/atheroswifi/0] ieee80211_ref_node (ieee80211_send_mgmt:2649) 0x81740000<e0:28:6d:f8:4d:f8> refcnt 4
3952	KERN: [net/atheroswifi/0] [e0:28:6d:f8:4d:f8] recv auth frame with algorithm 0 seq 2
3953	KERN: [net/atheroswifi/0] ieee80211_new_state_locked: AUTH -> ASSOC (nrunning 0 nscanning 0)
3954	KERN: [net/atheroswifi/0] ieee80211_newstate_cb: AUTH -> ASSOC arg 0
3955	KERN: [net/atheroswifi/0] sta_newstate: AUTH -> ASSOC (0)
3956	KERN: [net/atheroswifi/0] ieee80211_ref_node (ieee80211_send_mgmt:2649) 0x81740000<e0:28:6d:f8:4d:f8> refcnt 4
3957	KERN: [net/atheroswifi/0] ieee80211_parse_wmeparams: WME: 0: acm=0 aifsn=3 logcwmin=4 logcwmax=10 txopLimit=0
3958	KERN: [net/atheroswifi/0] ieee80211_parse_wmeparams: WME: 1: acm=0 aifsn=7 logcwmin=4 logcwmax=10 txopLimit=0
3959	KERN: [net/atheroswifi/0] ieee80211_parse_wmeparams: WME: 2: acm=0 aifsn=2 logcwmin=3 logcwmax=4 txopLimit=94
3960	KERN: [net/atheroswifi/0] ieee80211_parse_wmeparams: WME: 3: acm=0 aifsn=2 logcwmin=2 logcwmax=3 txopLimit=47
3961	KERN: [net/atheroswifi/0] ieee80211_wme_updateparams_locked: WME params updated, cap_info 0x0
3962	KERN: [net/atheroswifi/0] [e0:28:6d:f8:4d:f8] assoc success at aid 6: short preamble, short slot time, QoS, HT20 (+AMPDU) (+AMSDU)
3963	KERN: [net/atheroswifi/0] ieee80211_new_state_locked: ASSOC -> RUN (nrunning 0 nscanning 0)
3964	KERN: [net/atheroswifi/0] ieee80211_newstate_cb: ASSOC -> RUN arg 16
3965	KERN: [net/atheroswifi/0] sta_newstate: ASSOC -> RUN (16)
3966	KERN: ieee80211_notify_node_join
3967	KERN: /dev/net/atheroswifi/0: media change, media 0x8600a5 quality 1000 speed 1000000
3968	KERN: [net/atheroswifi/0] [e0:28:6d:f8:4d:f8] ieee80211_node_authorize: inact_reload 20
3969	KERN: wlan_control: 9235, 15
3970	KERN: wlan_control: 9235, 1
3971	DAEMON 'DHCP': /dev/net/atheroswifi/0: Send DHCP_DISCOVER to 255.255.255.255:67
3972	KERN: wlan_control: 9235, 1
3973	KERN: wlan_control: 9235, 15
3974	KERN: wlan_control: 9234, 19
3975	Last message repeated 1 time
3976	KERN: [net/atheroswifi/0] ieee80211_find_rxnode_withkey: add key map entry 0x81740000<e0:28:6d:f8:4d:f8> refcnt 4
3977	DAEMON 'DHCP': /dev/net/atheroswifi/0: Timeout shift: 500 msecs (try 1)
3978	DAEMON 'DHCP': /dev/net/atheroswifi/0: Send DHCP_DISCOVER to 255.255.255.255:67
3979	DAEMON 'DHCP': /dev/net/atheroswifi/0: Received DHCP_OFFER from 192.168.178.1
3980	DAEMON 'DHCP':   your_address: 192.168.178.31
3981	DAEMON 'DHCP':   server: 192.168.178.1
3982	DAEMON 'DHCP':   lease time: 864000 seconds
3983	DAEMON 'DHCP':   renewal time: 432000 seconds
3984	DAEMON 'DHCP':   rebinding time: 756000 seconds
3985	DAEMON 'DHCP':   subnet: 255.255.255.0
3986	DAEMON 'DHCP':   gateway: 192.168.178.1
3987	DAEMON 'DHCP':   nameserver[0]: 192.168.178.1
3988	DAEMON 'DHCP':   domain name: "fritz.box"
3989	DAEMON 'DHCP':   broadcast: 192.168.178.255
3990	DAEMON 'DHCP': /dev/net/atheroswifi/0: Send DHCP_REQUEST for 192.168.178.31 to 255.255.255.255:67
3991	DAEMON 'DHCP': /dev/net/atheroswifi/0: Received DHCP_ACK from 192.168.178.1
3992	DAEMON 'DHCP':   server: 192.168.178.1
3993	DAEMON 'DHCP':   lease time: 864000 seconds
3994	DAEMON 'DHCP':   renewal time: 432000 seconds
3995	DAEMON 'DHCP':   rebinding time: 756000 seconds
3996	DAEMON 'DHCP':   subnet: 255.255.255.0
3997	DAEMON 'DHCP':   gateway: 192.168.178.1
3998	DAEMON 'DHCP':   nameserver[0]: 192.168.178.1
3999	DAEMON 'DHCP':   domain name: "fritz.box"
4000	DAEMON 'DHCP':   broadcast: 192.168.178.255
4001	DAEMON 'DHCP': /dev/net/atheroswifi/0: DHCP status = No error
4002	KERN: /dev/net/atheroswifi/0: media change, media 0x8600b8 quality 1000 speed 0
4003	KERN: [net/atheroswifi/0] ieee80211_ref_node (ht_send_action_ba_addba:3055) 0x81740000<e0:28:6d:f8:4d:f8> refcnt 5
4004	Last message repeated 1 time
4005	KERN: slab memory manager: created area 0xe1801000 (9313)
4006	KERN: slab memory manager: created area 0xe2001000 (9330)
4007	KERN: wlan_control: 9234, 19
4008	KERN: [net/atheroswifi/0] beacon miss, mode STA state RUN

hrev55706

5656	KERN: pci_reserve_device(2, 0, 0, atheroswifi)
5657	KERN: [atheroswifi] (ath) bus_alloc_resource(3, [16], 0x0, 0xffffffff, 0x1,0x2)
5658	KERN: set MTRRs to:
5659	KERN:   mtrr:  0: base: 0x3f6b0000, size:    0x10000, type: 0
5660	KERN:   mtrr:  1: base: 0x3f6c0000, size:    0x40000, type: 0
5661	KERN:   mtrr:  2: base: 0x80000000, size: 0x80000000, type: 0
5662	KERN:   mtrr:  3: base: 0x3f800000, size:   0x800000, type: 1
5663	KERN: [atheroswifi] (ath) bus_alloc_resource(1, [0], 0x0, 0xffffffff, 0x1,0x6)
5664	KERN: [atheroswifi] (ath) RX timestamp: 32 bits
5665	KERN: [atheroswifi] (ath) TX timestamp: 32 bits
5666	KERN: [atheroswifi] (ath) [HT] enabling HT modes
5667	KERN: [atheroswifi] (ath) [HT] 1 stream STBC receive enabled
5668	KERN: [atheroswifi] (ath) [HT] 1 stream STBC transmit enabled
5669	KERN: [atheroswifi] (ath) [HT] 2 RX streams; 2 TX streams
5670	KERN: ieee80211_sysctl_attach not implemented, yet.
5671	KERN: : [atheroswifi] 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
5672	KERN: : [atheroswifi] 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
5673	KERN: : [atheroswifi] 2T2R
5674	KERN: : [atheroswifi] 11ng MCS 20MHz
5675	KERN: : [atheroswifi] MCS 0-7: 6.5Mbps - 65Mbps
5676	KERN: : [atheroswifi] MCS 8-15: 13Mbps - 130Mbps
5677	KERN: : [atheroswifi] 11ng MCS 40MHz:
5678	KERN: : [atheroswifi] MCS 0-7: 13.5Mbps - 135Mbps
5679	KERN: : [atheroswifi] MCS 8-15: 27Mbps - 270Mbps
5680	KERN: : [atheroswifi] 11ng MCS 40MHz SGI:
5681	KERN: : [atheroswifi] MCS 0-7: 15Mbps - 150Mbps
5682	KERN: : [atheroswifi] MCS 8-15: 30Mbps - 300Mbps
5683	KERN: [atheroswifi] (ath) AR9280 mac 128.2 RF5133 phy 13.0
5684	KERN: [atheroswifi] (ath) 2GHz radio: 0x0000; 5GHz radio: 0x00c0
5685	KERN: [atheroswifi] (ath) Use hw queue 1 for WME_AC_BE traffic
5686	KERN: [atheroswifi] (ath) Use hw queue 0 for WME_AC_BK traffic
5687	KERN: [atheroswifi] (ath) Use hw queue 2 for WME_AC_VI traffic
5688	KERN: [atheroswifi] (ath) Use hw queue 3 for WME_AC_VO traffic
5689	KERN: [atheroswifi] (ath) Use hw queue 8 for CAB traffic
5690	KERN: [atheroswifi] (ath) Use hw queue 9 for beacons
5691	KERN: [atheroswifi] (ath) using multicast key search
5692	KERN: if_initname(0x829ff400, wlan, 14)
5693	KERN: [atheroswifi] atheroswifi: /dev/net/atheroswifi/0
5694	KERN: [net/atheroswifi/0] ieee80211_node_vattach: init 2 auth 12 run 20 probe 2
5695	KERN: [net/atheroswifi/0] ieee80211_vap_attach: STA parent  flags 0x400c2008 flags_ext 0x2
5696	KERN: [net/atheroswifi/0] ieee80211_alloc_node 0x81b30000<00:23:08:d0:69:69> in station table
5697	KERN: [net/atheroswifi/0] [00:23:08:d0:69:69] ieee80211_alloc_node: inact_reload 2
5698	KERN: ifmedia_add: Adding Entry...
5699	KERN:   Type: IEEE 802.11 Wireless Ethernet
5700	KERN:   Mode: autoselect
5701	KERN:   SubType: autoselect
5702	KERN: ifmedia_add: Adding Entry...
5703	KERN:   Type: IEEE 802.11 Wireless Ethernet
5704	KERN:   Mode: 11b
5705	KERN:   SubType: autoselect
.
.
5834	KERN: ifmedia_set: target KERN:   Type: IEEE 802.11 Wireless Ethernet
5835	KERN:   Mode: autoselect
5836	KERN:   SubType: autoselect
5837	KERN: ifmedia_set: setting to   Type: IEEE 802.11 Wireless Ethernet
5838	KERN:   Mode: autoselect
5839	KERN:   SubType: autoselect
5840	KERN: if_attach 0x8297fcdc
5841	KERN: start_wlan: wlan started.
5842	KERN: atheroswifi: init_driver(0x81a92348)
5845	KERN: [33musb_davicom:[0m00.23.442:init_driver::ver.0.9.5
5847	KERN: [33musb_asix:[0m00.23.462:init_driver::ver.0.10.1
5850	KERN: etherpci: init_driver KERN: init_driver: etherpci not found
5851	KERN: [net/atheroswifi/0] compat_open(0x2)
5852	KERN: [net/atheroswifi/0] ieee80211_init
5853	KERN: [net/atheroswifi/0] start running, 0 vaps running
5854	KERN: ieee80211_notify_ifnet_change not implemented, yet.
5855	KERN: [net/atheroswifi/0] ieee80211_start_locked: up parent
5856	KERN: [net/atheroswifi/0] start running, 1 vaps running
5857	KERN: [net/atheroswifi/0] ieee80211_new_state_locked: INIT -> SCAN (nrunning 0 nscanning 0)
5858	KERN: /dev/net/atheroswifi/0: media change, media 0x200a0 quality 1000 speed 0
5859	KERN: [net/atheroswifi/0] start running, 1 vaps running
5860	KERN: [net/atheroswifi/0] ieee80211_new_state_locked: pending INIT -> SCAN transition lost
5861	KERN: [net/atheroswifi/0] ieee80211_new_state_locked: INIT -> SCAN (nrunning 0 nscanning 0)
5862	KERN: [net/atheroswifi/0] ieee80211_newstate_cb: INIT -> SCAN arg 0
5863	KERN: [net/atheroswifi/0] sta_newstate: INIT -> SCAN (0)
5864	KERN: ieee80211_notify_scan_done
5865	KERN: wlan_control: 9235, 78
5866	KERN: wlan_control: 9235, 76
6693	KERN: wlan_control: 9235, 15
6694	KERN: wlan_control: 9235, 76
6695	KERN: wlan_control: 9235, 15
6696	KERN: wlan_control: 9235, 76
6697	KERN: wlan_control: 9235, 15
6698	KERN: wlan_control: 9235, 76
6699	KERN: wlan_control: 9235, 15
6700	KERN: wlan_control: 9235, 76
.
.
(reboot?)
.
.
6702	Last message repeated 1 time
6703	KERN: set MTRRs to:
6704	KERN:   mtrr:  0: base: 0x3f6b0000, size:    0x10000, type: 0
6705	KERN:   mtrr:  1: base: 0x3f6c0000, size:    0x40000, type: 0
6706	KERN:   mtrr:  2: base: 0x80000000, size: 0x80000000, type: 0
6707	KERN:   mtrr:  3: base: 0x3f800000, size:   0x800000, type: 1
6708	KERN: options = 1

comment:2 by kallisti5, 2 years ago

It appears no DHCP ever runs because ieee80211_notify_node_join never is triggered?

threedeyes says several Russian users are seeing this after updating on Telegram. x86_gcc2 and x86_64

comment:3 by waddlesplash, 2 years ago

Milestone: UnscheduledR1/beta4
Platform: x86All
Priority: normalcritical
Version: R1/Development

Probably a GCC 11 regression, I'd wager.

comment:4 by kallisti5, 2 years ago

Upgraded my XPS 13 laptop (idualwifi7260) from hrev55692 to hrev55706.

Confirmed here. All wifi drivers now show "no wireless networks found" in the network preflet.

comment:5 by waddlesplash, 2 years ago

kallisti5 confirms by testing that adding SubDirCcFlags -O0 ; to the net80211 Jamfile fixes this. So, it seems we have some kind of miscompilation somehow.

Last edited 2 years ago by waddlesplash (previous) (diff)

comment:6 by kallisti5, 2 years ago

diff --git a/src/libs/compat/freebsd_wlan/net80211/Jamfile b/src/libs/compat/freebsd_wlan/net80211/Jamfile
index a5086aed36..aab04c0445 100644
--- a/src/libs/compat/freebsd_wlan/net80211/Jamfile
+++ b/src/libs/compat/freebsd_wlan/net80211/Jamfile
@@ -12,7 +12,7 @@ Includes [ FGristFiles kernel_c++_structs.h ]
        : <src!system!kernel>kernel_c++_struct_sizes.h ;
 
 SubDirCcFlags [ FDefines _KERNEL=1 FBSD_DRIVER=1 ]
-       -Wno-format -Wno-unused -Wno-uninitialized ;
+       -Wno-format -Wno-unused -Wno-uninitialized -O0 ;
 SubDirC++Flags [ FDefines _KERNEL=1 FBSD_DRIVER=1 ] ;
 
 SEARCH_SOURCE += [ FDirName $(SUBDIR) .. crypto rijndael ] ;

solves the issue for me. -O1 doesn't work... only -O0

We need to dig into why.

comment:7 by markh, 2 years ago

I am having the same problem with iprowifi4965.

Is it possible to commit the workaround for now? I understand that it is important to find out why this fails, but working on a Haiku laptop without Wifi is a bit hard.

comment:8 by waddlesplash, 2 years ago

I committed the workaround in hrev55711.

The FreeBSD developers haven't run into anything similar (they use Clang for building now by default however, and it may not have whatever optimization or bug this is yet.) So we are on our own to debug this, it seems.

I'll try to take a look before too long, I imagine -O0 makes quite a performance difference...

comment:9 by waddlesplash, 2 years ago

Priority: criticalblocker

comment:10 by tojoko, 2 years ago

Seems fixed to me, at least works for me now fine, again - please confirm.

comment:11 by markh, 2 years ago

It is also working for me again. Thank you very much.

comment:12 by kallisti5, 2 years ago

For anyone who gets "stuck" between hrev55706 and hrev55711 in the nightly images:

  • Reboot, enter bootloader menu
  • Choose the Haiku volume, select a previous package activation state
  • Reboot, confirm wifi once again working
  • Upgrade to hrev55711 or later.

This one is going to remain open as a reminder for us to investigate why we have to disable all optimization on the net80211 freebsd stack after upgrading to GCC11.

comment:13 by kallisti5, 2 years ago

Owner: changed from mmlr to waddlesplash
Status: newassigned

comment:14 by pulkomandy, 2 years ago

It appears no DHCP ever runs because ieee80211_notify_node_join never is triggered?

I think the difference in the logs starts much earlier than that.

They are similar until this line:

3035	KERN: [net/atheroswifi/0] sta_newstate: INIT -> SCAN (0)
5863	KERN: [net/atheroswifi/0] sta_newstate: INIT -> SCAN (0)

In the log before the update this is followed by a lot of media_change. Then eventually we get to

3888	KERN: ieee80211_notify_scan_done

But in the new log this notify_scan_done happens immediately. Then nothing happens after it. It looks like the scan for networks doesn't actually start happening? and we never get back to the INIT state or go to any other state.

by pulkomandy, 2 years ago

Attachment: wlan_scan_verbose.txt added

Syslog with extra tracing for scan enabled

comment:15 by pulkomandy, 2 years ago

Attached a syslog including extra traces (added IEEE80211_MSG_SCAN to iv_debug). The scan appears to complete normally, but nothing is triggered after that.

The tracing isn't great, there is a lot of "KERN: " headers often for just one or a few characters. Shouldn't there be some line buffering on this?

comment:16 by waddlesplash, 2 years ago

I tracked down the one file that is the real culprit here and reduced the -O0 in hrev55920.

comment:17 by waddlesplash, 2 years ago

The function in question appears to be:

static void
scan_end(struct ieee80211_scan_state *ss, int scandone)

Compiling just it with -O0, via

#pragma GCC optimize ("-O0")
...
#pragma GCC reset_options

produces working scan results again.

comment:18 by waddlesplash, 2 years ago

Even just between -O0 and -O1 and disabling a number of optimizations, the assembly differences are so large that it is hard to make out exactly what changed to cause this problem...

comment:19 by pulkomandy, 2 years ago

That's kind of expected in this case? It would probably be optimizations removing code after determining that it makes no sense due to undefined behavior?

gcc documents the specific optimizations activated by gcc in -O1 mode: https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html so the next step would be figuring out which combination of these is involved here. And hopefully have a simpler diff when we change just one optimization setting between working and non-working.

comment:20 by waddlesplash, 2 years ago

Those optimizations are actually an incomplete list; I've discovered when bisecting such regressions before. Instead there is an option in GCC that displays all optimization passes and which ones are disabled and which ones are not.

I already ran this code when compiled with -O0 -fsanitize=undefined, and got nothing of interest from it (just some signed integer underflows in other parts of the code.)

At some point it is just not worth spending more time on this. The -O0 is now reduced to a single file instead of all of them, and GCC 11 has quite a lot of acknowledged bugs. FreeBSD builds with Clang now, so they don't care about this kind of thing.

comment:21 by waddlesplash, 2 years ago

Milestone: R1/beta4Unscheduled
Priority: blockerhigh

comment:22 by waddlesplash, 2 years ago

Resolution: fixed
Status: assignedclosed

I think I am just going to call this one "fixed" and leave the workaround in place rather than trying to investigate further.

comment:23 by bruno, 23 months ago

works now 32 and 64bit tested sometimes still loosing connection and reconects

Note: See TracTickets for help on using tickets.