]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw89: phy: add PHY context array to support functions per PHY
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 17 Jan 2025 07:28:22 +0000 (15:28 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 3 Feb 2025 01:45:59 +0000 (09:45 +0800)
commit57a6cdf2feaf864903b88ae03fe9e0d56cdbd0ee
treea184538af945fbcb462ea7b796c82abc5cef6f95
parentf0dc53a7b77f900aa3d13309f84912b324ccca35
wifi: rtw89: phy: add PHY context array to support functions per PHY

To support MLO working on PHY 0 and PHY 1, extend existing PHY dynamic
mechanism from PHY 0 to PHY 0/1.

Implement a 2 elements array for two PHY instances, and pass pointer
of each element as argument to existing functions. Then existing algorithm
is kept, unchanged.

Also provide iterate and get function to access PHY context.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250117072828.16728-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/core.h