~greg-whiteley/+git/rtw89:deb_updates

Last commit made on 2023-04-18
Get this branch:
git clone -b deb_updates https://git.launchpad.net/~greg-whiteley/+git/rtw89
Only Greg Whiteley can upload to this branch. If you are Greg Whiteley please log in for upload directions.

Branch merges

Branch information

Name:
deb_updates
Repository:
lp:~greg-whiteley/+git/rtw89

Recent commits

8c9ac60... by Greg Whiteley

Merge branch 'main' of https://github.com/lwfinger/rtw89 into deb_updates_lp

495f7f4... by Greg Whiteley

add rtw8852_fw-1.bin for backporting

d6ca162... by Larry Finger

rtw89: More fixes for kernel 5.3

Signed-off-by: Larry Finger <email address hidden>

f9efd83... by Larry Finger

rtw89: Fix breakage for kernel 5.3

Signed-off-by: Larry Finger <email address hidden>

3f7ba52... by Larry Finger

rtw89: Fix merge error

The code has now been changed to match the wireless-next code as
of April 14, 2023. This is likely to be the code in kernel 6.4.

Signed-off-by: Larry Finger <email address hidden>

aa9d96a... by Ping-Ke Shih

wifi: rtw89: 8852b: try to use NORMAL_CE type firmware first

New firmware type NORMAL_CE is introduced to support P2P-PS and hardware
scan, but no LPS-PG mode. After this patch, old firmware with NORMAL type
can still work well.

The use of this new type is the same as before, so we add new type to
avoid taking wrong firmware. Then, driver log can also give clear
information about this change:

  rtw89_8852be 0000:03:00.0: Firmware version 0.29.26.0, cmd version 0, type 5
  rtw89_8852be 0000:03:00.0: Firmware version 0.29.26.0, cmd version 0, type 3

Signed-off-by: Ping-Ke Shih <email address hidden>
Signed-off-by: Kalle Valo <email address hidden>
Link: https://<email address hidden>

a79dd3b... by Ping-Ke Shih

wifi: rtw89: fix crash due to null pointer of sta in AP mode

In AP mode, 'sta' could be NULL if sending broadcast/multicast packets,
so we should check before accessing, or it causes crash:

  BUG: kernel NULL pointer dereference, address: 0000000000000004
  #PF: supervisor read access in kernel mode
  #PF: error_code(0x0000) - not-present page
  PGD 0 P4D 0
  Oops: 0000 [#1] PREEMPT SMP PTI
  CPU: 2 PID: 92 Comm: kworker/u33:0 Tainted: G OE
  Workqueue: rtw89_tx_wq rtw89_core_txq_work [rtw89_core]
  RIP: 0010:rtw89_core_tx_update_desc_info+0x2cc/0x7d0 [rtw89_core]
  Code: e2 01 41 be 04 00 00 00 41 8b 84 c4 0c 01 00 00 75 0d 45 31 f6 ...
  RSP: 0018:ffffb4cf807afce0 EFLAGS: 00010297
  RAX: 0000000000000001 RBX: ffffb4cf807afd48 RCX: 0000000000000000
  RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
  RBP: ffffb4cf807afd30 R08: ffff9b28c1e59808 R09: ffff9b28c0297100
  R10: 00000000052cf7c4 R11: 00000000052cf7c4 R12: ffff9b28c1602040
  R13: ffff9b28c07b3000 R14: 0000000000000004 R15: 0000000000000000
  FS: 0000000000000000(0000) GS:ffff9b2a73280000(0000) knlGS:0000000000000000
  CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: 0000000000000004 CR3: 00000001ca410003 CR4: 00000000000606e0
  Call Trace:
   <TASK>
   rtw89_core_tx_write+0x7c/0x100 [rtw89_core]
   rtw89_core_txq_work+0x1b4/0x530 [rtw89_core]
   process_one_work+0x222/0x3f0
   worker_thread+0x50/0x3f0
   kthread+0x16b/0x190
   ? rescuer_thread+0x3a0/0x3a0
   ? set_kthread_struct+0x50/0x50
   ret_from_fork+0x22/0x30
   </TASK>

Fixes: e5307c9cd7ee ("wifi: rtw89: set data lowest rate according to AP supported rate")
Signed-off-by: Ping-Ke Shih <email address hidden>
Signed-off-by: Kalle Valo <email address hidden>
Link: https://<email address hidden>

81eacf4... by Eric Huang <email address hidden>

wifi: rtw89: correct 5 MHz mask setting

Use primary channel index to determine which 5 MHz mask should be enable.
This mask is used to prevent noise from channel edge to effect CCA
threshold in wide bandwidth (>= 40 MHZ).

Fixes: 1b00e9236a71 ("rtw89: 8852c: add set channel of BB part")
Fixes: 6b0698984eb0 ("wifi: rtw89: 8852b: add chip_ops::set_channel")
Cc: <email address hidden>
Signed-off-by: Eric Huang <email address hidden>
Signed-off-by: Ping-Ke Shih <email address hidden>
Signed-off-by: Kalle Valo <email address hidden>
Link: https://<email address hidden>

a4c524d... by Ping-Ke Shih

wifi: rtw89: 8851b: add tables for RFK

These tables are used by RF calibrations to assist to configure PHY and
RF registers.

Signed-off-by: Ping-Ke Shih <email address hidden>
Signed-off-by: Kalle Valo <email address hidden>
Link: https://<email address hidden>

959020c... by Ping-Ke Shih

wifi: rtw89: 8851b: add BB and RF tables (2 of 2)

These tables contain BB and RF parameters that driver will load them into
registers. It also contains TX power according to country, band, rate and
so on. Increasing thermal can cause TX power degraded, so power tracking
tables are defined to compensate TX power.

Internal version of these tables:
 - HALBB_029_106_15 (V17)
 - HALRF_029_00_089
   * Radio A 0x22
   * NCTL 0x5

Signed-off-by: Ping-Ke Shih <email address hidden>
Signed-off-by: Kalle Valo <email address hidden>
Link: https://<email address hidden>