Search Linux Wireless

Re: brcmfmac: Unexpected brcmf_set_channel: set chanspec 0xd022 fail, reason -52 - Part 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 15.11.23 um 10:34 schrieb Arend van Spriel:
On 11/13/2023 10:02 PM, Stefan Wahren wrote:
Hi Arend,

Am 13.11.23 um 10:11 schrieb Arend van Spriel:
On 11/11/2023 9:30 PM, Stefan Wahren wrote:
Am 11.11.23 um 19:29 schrieb Stefan Wahren:

Am 11.11.23 um 18:25 schrieb Arend Van Spriel:
On November 11, 2023 5:48:46 PM Stefan Wahren <wahrenst@xxxxxxx>
wrote:


Again look like these are disabled channels. At least chanspec
0xd022
is 5G channel 34. You say you get this only once so not every 60
seconds?
I get this everytime i trigger a reconnect to the wifi network, so
not
periodically (checked that). Strangely the initial automatic connect
doesn't trigger this errors.
I additionally placed a WARN_ON_ONCE after the error log and
enabled the
firmware error log of brcmf_fil_cmd_data(). Maybe this helps.

It does a bit. At least it shows this is happening with the
dump_survey (again). I don't really understand why though. It implies
the channel is not disabled, but unclear why. The channel flags are
changed in brcmf_construct_chaninfo() so we probably should focus
debug on that function.


i placed a pr_err at the start of brcmf_construct_chaninfo and another
pr_err into the for loop before the "if (channel->orig_flags &
IEEE80211_CHAN_DISABLED) continue".

pr_err("%s: Ch num %d, chanspec 0x%x, orig_flags: %x.\n", __func__,
ch.control_ch_num, ch.chspec, channel->orig_flags);

It seems that brcmf_construct_chaninfo is called two times, but the
results are different. I could find 0xd090 in the first run, but not in
second. The other chanspecs doesn't seem to occur in both runs. No idea
what's going on here.

Can you print all wiphy band channels before exiting
brcmf_construct_chaninfo() and print both channel->orig_flags and
channel->flags?

Sure. It seems that in the first call of brcmf_construct_chaninfo the
channel 144 is not disabled, but in the second.

[    8.746495] brcmfmac: brcmf_construct_chaninfo called
[    8.785752] brcmfmac: 2 GHz: 0: hw_value 1: orig_flags: 00080180,
flags 000001b0
[    8.785777] brcmfmac: 2 GHz: 1: hw_value 2: orig_flags: 00080180,
flags 000001b0
[    8.785783] brcmfmac: 2 GHz: 2: hw_value 3: orig_flags: 00080180,
flags 000001b0
[    8.785789] brcmfmac: 2 GHz: 3: hw_value 4: orig_flags: 00080180,
flags 000001b0
[    8.785794] brcmfmac: 2 GHz: 4: hw_value 5: orig_flags: 00080180,
flags 000001b0
[    8.785800] brcmfmac: 2 GHz: 5: hw_value 6: orig_flags: 00080180,
flags 000001b0
[    8.785806] brcmfmac: 2 GHz: 6: hw_value 7: orig_flags: 00080180,
flags 000001b0
[    8.785811] brcmfmac: 2 GHz: 7: hw_value 8: orig_flags: 00080180,
flags 000001b0
[    8.785817] brcmfmac: 2 GHz: 8: hw_value 9: orig_flags: 00080180,
flags 000001b0
[    8.785823] brcmfmac: 2 GHz: 9: hw_value 10: orig_flags: 00080180,
flags 000001b0
[    8.785828] brcmfmac: 2 GHz: 10: hw_value 11: orig_flags: 00080180,
flags 000001b0
[    8.785834] brcmfmac: 2 GHz: 11: hw_value 12: orig_flags: 00080180,
flags 00000001
[    8.785839] brcmfmac: 2 GHz: 12: hw_value 13: orig_flags: 00080180,
flags 00000001
[    8.785845] brcmfmac: 2 GHz: 13: hw_value 14: orig_flags: 000801b0,
flags 00000001
[    8.785850] brcmfmac: 5 GHz: 0: hw_value 34: orig_flags: 00080000,
flags 00000001
[    8.785856] brcmfmac: 5 GHz: 1: hw_value 36: orig_flags: 00080000,
flags 00000120
[    8.785861] brcmfmac: 5 GHz: 2: hw_value 38: orig_flags: 00080000,
flags 00000001
[    8.785867] brcmfmac: 5 GHz: 3: hw_value 40: orig_flags: 00080000,
flags 00000110
[    8.785872] brcmfmac: 5 GHz: 4: hw_value 42: orig_flags: 00080000,
flags 00000001
[    8.785877] brcmfmac: 5 GHz: 5: hw_value 44: orig_flags: 00080000,
flags 00000120
[    8.785882] brcmfmac: 5 GHz: 6: hw_value 46: orig_flags: 00080000,
flags 00000001
[    8.785888] brcmfmac: 5 GHz: 7: hw_value 48: orig_flags: 00080000,
flags 00000110
[    8.785893] brcmfmac: 5 GHz: 8: hw_value 52: orig_flags: 00080000,
flags 0000012a
[    8.785899] brcmfmac: 5 GHz: 9: hw_value 56: orig_flags: 00080000,
flags 0000011a
[    8.785904] brcmfmac: 5 GHz: 10: hw_value 60: orig_flags: 00080000,
flags 0000012a
[    8.785909] brcmfmac: 5 GHz: 11: hw_value 64: orig_flags: 00080000,
flags 0000011a
[    8.785914] brcmfmac: 5 GHz: 12: hw_value 100: orig_flags: 00080000,
flags 0000012a
[    8.785920] brcmfmac: 5 GHz: 13: hw_value 104: orig_flags: 00080000,
flags 0000011a
[    8.785926] brcmfmac: 5 GHz: 14: hw_value 108: orig_flags: 00080000,
flags 0000012a
[    8.785931] brcmfmac: 5 GHz: 15: hw_value 112: orig_flags: 00080000,
flags 0000011a
[    8.785937] brcmfmac: 5 GHz: 16: hw_value 116: orig_flags: 00080000,
flags 0000012a
[    8.785942] brcmfmac: 5 GHz: 17: hw_value 120: orig_flags: 00080000,
flags 0000011a
[    8.785947] brcmfmac: 5 GHz: 18: hw_value 124: orig_flags: 00080000,
flags 0000012a
[    8.785953] brcmfmac: 5 GHz: 19: hw_value 128: orig_flags: 00080000,
flags 0000011a
[    8.785958] brcmfmac: 5 GHz: 20: hw_value 132: orig_flags: 00080000,
flags 0000012a
[    8.785963] brcmfmac: 5 GHz: 21: hw_value 136: orig_flags: 00080000,
flags 0000011a
[    8.785968] brcmfmac: 5 GHz: 22: hw_value 140: orig_flags: 00080000,
flags 0000012a
[    8.785974] brcmfmac: 5 GHz: 23: hw_value 144: orig_flags: 00080000,
flags 0000011a
[    8.785980] brcmfmac: 5 GHz: 24: hw_value 149: orig_flags: 00080000,
flags 00000120
[    8.785985] brcmfmac: 5 GHz: 25: hw_value 153: orig_flags: 00080000,
flags 00000110
[    8.785991] brcmfmac: 5 GHz: 26: hw_value 157: orig_flags: 00080000,
flags 00000120
[    8.785996] brcmfmac: 5 GHz: 27: hw_value 161: orig_flags: 00080000,
flags 00000110
[    8.786001] brcmfmac: 5 GHz: 28: hw_value 165: orig_flags: 00080000,
flags 000001b0
[    8.788704] hub 1-1:1.0: USB hub found
[    8.788821] hub 1-1:1.0: 4 ports detected
[    8.791957] onboard-usb-hub 3f980000.usb:usb-port@1: supply vdd not
found, using dummy regulator
[    8.793702] hub 1-1:1.0: USB hub found
[    8.793771] hub 1-1:1.0: 4 ports detected
[    8.802200] onboard-usb-hub 3f980000.usb:usb-port@1:usb-port@1:
supply vdd not found, using dummy regulator
[    9.118321] usb 1-1.1: new high-speed USB device number 7 using dwc2
[    9.259037] hub 1-1.1:1.0: USB hub found
[    9.259172] hub 1-1.1:1.0: 3 ports detected
[    9.358264] usb 1-1.3: new low-speed USB device number 8 using dwc2
[    9.448978] Bluetooth: hci0: BCM: features 0x2f
[    9.450779] Bluetooth: hci0: BCM43455 37.4MHz Raspberry Pi 3+
[    9.450787] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0342
[    9.516274] input: HID 046a:0011 as
/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:046A:0011.0003/input/input2
[    9.581849] hid-generic 0003:046A:0011.0003: input: USB HID v1.11
Keyboard [HID 046a:0011] on usb-3f980000.usb-1.3/input0
[    9.588292] usb 1-1.1.2: new low-speed USB device number 9 using dwc2
[    9.726779] input: PixArt Microsoft USB Optical Mouse as
/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0/0003:045E:00CB.0004/input/input3
[    9.727131] hid-generic 0003:045E:00CB.0004: input: USB HID v1.11
Mouse [PixArt Microsoft USB Optical Mouse] on usb-3f980000.usb-1.1.2/input0
[   10.038321] usb 1-1.1.1: new high-speed USB device number 10 using dwc2
[   10.445710] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized):
No External EEPROM. Setting MAC Speed
[   12.311539] ieee80211 phy0: brcmf_fil_cmd_data: Firmware error: (-23)
[   12.453863] brcmfmac: brcmf_construct_chaninfo called
[   12.490762] brcmfmac: 2 GHz: 0: hw_value 1: orig_flags: 00080180,
flags 000001a0
[   12.490789] brcmfmac: 2 GHz: 1: hw_value 2: orig_flags: 00080180,
flags 000001a0
[   12.490796] brcmfmac: 2 GHz: 2: hw_value 3: orig_flags: 00080180,
flags 000001a0
[   12.490803] brcmfmac: 2 GHz: 3: hw_value 4: orig_flags: 00080180,
flags 000001a0
[   12.490810] brcmfmac: 2 GHz: 4: hw_value 5: orig_flags: 00080180,
flags 00000180
[   12.490817] brcmfmac: 2 GHz: 5: hw_value 6: orig_flags: 00080180,
flags 00000180
[   12.490823] brcmfmac: 2 GHz: 6: hw_value 7: orig_flags: 00080180,
flags 00000180
[   12.490830] brcmfmac: 2 GHz: 7: hw_value 8: orig_flags: 00080180,
flags 00000180
[   12.490837] brcmfmac: 2 GHz: 8: hw_value 9: orig_flags: 00080180,
flags 00000180
[   12.490843] brcmfmac: 2 GHz: 9: hw_value 10: orig_flags: 00080180,
flags 00000190
[   12.490850] brcmfmac: 2 GHz: 10: hw_value 11: orig_flags: 00080180,
flags 00000190
[   12.490857] brcmfmac: 2 GHz: 11: hw_value 12: orig_flags: 00080180,
flags 00000190
[   12.490864] brcmfmac: 2 GHz: 12: hw_value 13: orig_flags: 00080180,
flags 00000190
[   12.490870] brcmfmac: 2 GHz: 13: hw_value 14: orig_flags: 000801b0,
flags 00000001
[   12.490877] brcmfmac: 5 GHz: 0: hw_value 34: orig_flags: 00080000,
flags 00000001
[   12.490884] brcmfmac: 5 GHz: 1: hw_value 36: orig_flags: 00080000,
flags 00000120
[   12.490891] brcmfmac: 5 GHz: 2: hw_value 38: orig_flags: 00080000,
flags 00000001
[   12.490897] brcmfmac: 5 GHz: 3: hw_value 40: orig_flags: 00080000,
flags 00000110
[   12.490904] brcmfmac: 5 GHz: 4: hw_value 42: orig_flags: 00080000,
flags 00000001
[   12.490910] brcmfmac: 5 GHz: 5: hw_value 44: orig_flags: 00080000,
flags 00000120
[   12.490918] brcmfmac: 5 GHz: 6: hw_value 46: orig_flags: 00080000,
flags 00000001
[   12.490924] brcmfmac: 5 GHz: 7: hw_value 48: orig_flags: 00080000,
flags 00000110
[   12.490931] brcmfmac: 5 GHz: 8: hw_value 52: orig_flags: 00080000,
flags 0000012a
[   12.490937] brcmfmac: 5 GHz: 9: hw_value 56: orig_flags: 00080000,
flags 0000011a
[   12.490944] brcmfmac: 5 GHz: 10: hw_value 60: orig_flags: 00080000,
flags 0000012a
[   12.490951] brcmfmac: 5 GHz: 11: hw_value 64: orig_flags: 00080000,
flags 0000011a
[   12.490957] brcmfmac: 5 GHz: 12: hw_value 100: orig_flags: 00080000,
flags 0000012a
[   12.490964] brcmfmac: 5 GHz: 13: hw_value 104: orig_flags: 00080000,
flags 0000011a
[   12.490971] brcmfmac: 5 GHz: 14: hw_value 108: orig_flags: 00080000,
flags 0000012a
[   12.490978] brcmfmac: 5 GHz: 15: hw_value 112: orig_flags: 00080000,
flags 0000011a
[   12.490984] brcmfmac: 5 GHz: 16: hw_value 116: orig_flags: 00080000,
flags 0000012a
[   12.490991] brcmfmac: 5 GHz: 17: hw_value 120: orig_flags: 00080000,
flags 0000011a
[   12.490997] brcmfmac: 5 GHz: 18: hw_value 124: orig_flags: 00080000,
flags 0000012a
[   12.491004] brcmfmac: 5 GHz: 19: hw_value 128: orig_flags: 00080000,
flags 0000011a
[   12.491011] brcmfmac: 5 GHz: 20: hw_value 132: orig_flags: 00080000,
flags 000001aa
[   12.491017] brcmfmac: 5 GHz: 21: hw_value 136: orig_flags: 00080000,
flags 0000019a
[   12.491024] brcmfmac: 5 GHz: 22: hw_value 140: orig_flags: 00080000,
flags 000001ba
[   12.491031] brcmfmac: 5 GHz: 23: hw_value 144: orig_flags: 00080000,
flags 00000001
[   12.491038] brcmfmac: 5 GHz: 24: hw_value 149: orig_flags: 00080000,
flags 00000001
[   12.491044] brcmfmac: 5 GHz: 25: hw_value 153: orig_flags: 00080000,
flags 00000001
[   12.491051] brcmfmac: 5 GHz: 26: hw_value 157: orig_flags: 00080000,
flags 00000001
[   12.491057] brcmfmac: 5 GHz: 27: hw_value 161: orig_flags: 00080000,
flags 00000001
[   12.491064] brcmfmac: 5 GHz: 28: hw_value 165: orig_flags: 00080000,
flags 00000001


Gr. AvS





[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux