• Bartosz Markowski's avatar
    ath10k: set CTS protection VDEV param only if VDEV is up · 7cfe0455
    Bartosz Markowski authored
    The cts protection vdev parameter, in new QCA9377 TF2.0 firmware,
    requires bss peer to be created for the STATION vdev type.
    bss peer is being allocated by the firmware after vdev_start/_up commands.
    mac80211 may call the cts protection setup at any time, so the
    we needs to track the situation and defer the cts configuration
    to prevent firmware asserts, like below:
    
    [00]: 0x05020001 0x000015B3 0x0099ACE2 0x00955B31
    [04]: 0x0099ACE2 0x00060730 0x00000004 0x00000000
    [08]: 0x0044C754 0x00412C10 0x00000000 0x00409C54
    [12]: 0x00000009 0x00000000 0x00952F6C 0x00952F77
    [16]: 0x00952CC4 0x00910712 0x00000000 0x00000000
    [20]: 0x4099ACE2 0x0040E858 0x00421254 0x004127F4
    [24]: 0x8099B9B2 0x0040E8B8 0x00000000 0xC099ACE2
    [28]: 0x800B75CB 0x0040E8F8 0x00000007 0x00005008
    [32]: 0x809B048A 0x0040E958 0x00000010 0x00433B10
    [36]: 0x809AFBBC 0x0040E9A8 0x0042BB74 0x0042BBBC
    [40]: 0x8091D252 0x0040E9C8 0x0042BBBC 0x00000001
    [44]: 0x809FFA45 0x0040EA78 0x0043D3E4 0x0042C2C8
    [48]: 0x809FCEF4 0x0040EA98 0x0043D3E4 0x00000001
    [52]: 0x80911210 0x0040EAE8 0x00000010 0x004041D0
    [56]: 0x80911154 0x0040EB28 0x00400000 0x00000000
    Signed-off-by: default avatarBartosz Markowski <bartosz.markowski@tieto.com>
    Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
    7cfe0455
mac.c 206 KB