<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/net/wireless/realtek/rtw89/mac.c, branch linux-6.2.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.2.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.2.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2022-12-08T14:47:59Z</updated>
<entry>
<title>wifi: rtw89: add join info upon create interface</title>
<updated>2022-12-08T14:47:59Z</updated>
<author>
<name>Po-Hao Huang</name>
<email>phhuang@realtek.com</email>
</author>
<published>2022-12-02T06:15:27Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=a0e78d5c6082fc953fef5af7293be0145c67dba4'/>
<id>urn:sha1:a0e78d5c6082fc953fef5af7293be0145c67dba4</id>
<content type='text'>
To support multiple vifs, fw need more information of each role.
Send this info to make things work as expected.

Signed-off-by: Po-Hao Huang &lt;phhuang@realtek.com&gt;
Signed-off-by: Ping-Ke Shih &lt;pkshih@realtek.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@kernel.org&gt;
Link: https://lore.kernel.org/r/20221202061527.505668-5-pkshih@realtek.com
</content>
</entry>
<entry>
<title>wifi: rtw89: stop mac port function when stop_ap()</title>
<updated>2022-12-08T14:47:58Z</updated>
<author>
<name>Po-Hao Huang</name>
<email>phhuang@realtek.com</email>
</author>
<published>2022-12-02T06:15:25Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d592b9f742643f07db53ac34baf6bbd3ce9478dc'/>
<id>urn:sha1:d592b9f742643f07db53ac34baf6bbd3ce9478dc</id>
<content type='text'>
Disable hardware beacon related functions when ap stops. So hardware won't
transmit beacons while interface is already removed.

Signed-off-by: Po-Hao Huang &lt;phhuang@realtek.com&gt;
Signed-off-by: Ping-Ke Shih &lt;pkshih@realtek.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@kernel.org&gt;
Link: https://lore.kernel.org/r/20221202061527.505668-3-pkshih@realtek.com
</content>
</entry>
<entry>
<title>wifi: rtw89: add mac TSF sync function</title>
<updated>2022-12-08T14:47:58Z</updated>
<author>
<name>Po-Hao Huang</name>
<email>phhuang@realtek.com</email>
</author>
<published>2022-12-02T06:15:24Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=fb2b8cec81d75b2b20bdbc2fca7a60a68bc78aac'/>
<id>urn:sha1:fb2b8cec81d75b2b20bdbc2fca7a60a68bc78aac</id>
<content type='text'>
If the interface is in AP/P2P GO mode, we adjust the TSF with random
offset to avoid TBTT of different vifs to overlap and collide.
For every new interface added, we adjust the value and resync for all
interfaces.

Signed-off-by: Po-Hao Huang &lt;phhuang@realtek.com&gt;
Signed-off-by: Ping-Ke Shih &lt;pkshih@realtek.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@kernel.org&gt;
Link: https://lore.kernel.org/r/20221202061527.505668-2-pkshih@realtek.com
</content>
</entry>
<entry>
<title>wifi: rtw89: mac: process MCC related C2H</title>
<updated>2022-12-01T11:04:26Z</updated>
<author>
<name>Zong-Zhe Yang</name>
<email>kevin_yang@realtek.com</email>
</author>
<published>2022-11-29T08:31:28Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=ef9dff4cb491210518ad3d249919a0971eff601b'/>
<id>urn:sha1:ef9dff4cb491210518ad3d249919a0971eff601b</id>
<content type='text'>
Process C2H(s) related to MCC (multi-channel concurrency). These handling,
which either call rtw89_complete_cond() or show message in debug mode, can
be considered atomic/lock-free. So, they should be safe to be processed
directly after C2H pre-check in previous patch.

Signed-off-by: Zong-Zhe Yang &lt;kevin_yang@realtek.com&gt;
Signed-off-by: Ping-Ke Shih &lt;pkshih@realtek.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@kernel.org&gt;
Link: https://lore.kernel.org/r/20221129083130.45708-5-pkshih@realtek.com
</content>
</entry>
<entry>
<title>wifi: rtw89: check if atomic before queuing c2h</title>
<updated>2022-12-01T11:04:26Z</updated>
<author>
<name>Zong-Zhe Yang</name>
<email>kevin_yang@realtek.com</email>
</author>
<published>2022-11-29T08:31:26Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=860e8263ae92667a2002163886fd2ebd8c67f699'/>
<id>urn:sha1:860e8263ae92667a2002163886fd2ebd8c67f699</id>
<content type='text'>
Before queuing C2H work, we check atomicity of the C2H's handler first now.
If atomic or lock-free, handle it directly; otherwise, handle it with mutex
in work as previous. This prepares for MAC MCC C2Hs which require to be
processed directly. And, their handlers will be functions which can be
considered atomic.

Signed-off-by: Zong-Zhe Yang &lt;kevin_yang@realtek.com&gt;
Signed-off-by: Ping-Ke Shih &lt;pkshih@realtek.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@kernel.org&gt;
Link: https://lore.kernel.org/r/20221129083130.45708-3-pkshih@realtek.com
</content>
</entry>
<entry>
<title>wifi: rtw89: avoid inaccessible IO operations during doing change_interface()</title>
<updated>2022-11-22T10:15:56Z</updated>
<author>
<name>Ping-Ke Shih</name>
<email>pkshih@realtek.com</email>
</author>
<published>2022-11-17T08:52:35Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=ac3a9f1838d8f5e5f9c8b6e2582b65c48a1e7bc1'/>
<id>urn:sha1:ac3a9f1838d8f5e5f9c8b6e2582b65c48a1e7bc1</id>
<content type='text'>
During doing change_interface(), hardware is power-off, so some components
are inaccessible and return error. This causes things unexpected, and we
don't have a warning message for that. So, ignore some IO operations in
this situation, and add a warning message to indicate something wrong.

Signed-off-by: Ping-Ke Shih &lt;pkshih@realtek.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@kernel.org&gt;
Link: https://lore.kernel.org/r/20221117085235.53777-1-pkshih@realtek.com
</content>
</entry>
<entry>
<title>wifi: rtw89: use u32_encode_bits() to fill MAC quota value</title>
<updated>2022-11-09T06:59:58Z</updated>
<author>
<name>Ping-Ke Shih</name>
<email>pkshih@realtek.com</email>
</author>
<published>2022-11-08T01:38:58Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=525c06c81d75690a9b795cc62a758838c1a6b6fe'/>
<id>urn:sha1:525c06c81d75690a9b795cc62a758838c1a6b6fe</id>
<content type='text'>
Coverity reported shift 16 bits could cause sign extension and might get
an unexpected value. Since the input values are predefined and no this
kind of case, original code is safe so far. But, still changing them to
use u32_encode_bits() will be more clear and prevent mistakes in the
future.

The original message of Coverity is:
  Suspicious implicit sign extension: "max_cfg-&gt;cma0_dma" with type "u16"
  (16 bits, unsigned) is promoted in "max_cfg-&gt;cma0_dma &lt;&lt; 16" to type
  "int" (32 bits, signed), then sign-extended to type "unsigned long"
  (64 bits, unsigned).  If "max_cfg-&gt;cma0_dma &lt;&lt; 16" is greater than
  0x7FFFFFFF, the upper bits of the result will all be 1."

Reported-by: coverity-bot &lt;keescook+coverity-bot@chromium.org&gt;
Addresses-Coverity-ID: 1527095 ("Integer handling issues")
Fixes: e3ec7017f6a2 ("rtw89: add Realtek 802.11ax driver")
Signed-off-by: Ping-Ke Shih &lt;pkshih@realtek.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@kernel.org&gt;
Link: https://lore.kernel.org/r/20221108013858.10806-1-pkshih@realtek.com
</content>
</entry>
<entry>
<title>wifi: rtw89: update D-MAC and C-MAC dump to diagnose SER</title>
<updated>2022-11-08T07:39:47Z</updated>
<author>
<name>Chia-Yuan Li</name>
<email>leo.li@realtek.com</email>
</author>
<published>2022-11-02T01:43:00Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f7333fc2135b96dc36965a8e711a9275432256df'/>
<id>urn:sha1:f7333fc2135b96dc36965a8e711a9275432256df</id>
<content type='text'>
To detect TX or RX stuck, we implement SER (system error recovery) in
firmware to recover abnormal states of hardware, and report events to
driver. This kind of events could happen rarely per day.

SER might be true-positive or false-negative cases, and it could be failed
to recover true-positive case. We dump related registers to kernel message
at that moment and collect them from users, because they occur rarely,
randomly and hard to make sure we reproduce the same symptom. To address
problems accurately, add more registers by this patch.

It also might be false-positive cases that looks like TX or RX get stuck,
we need to dump registers from debugfs manually, so also add similar
things to debugfs as well.

Signed-off-by: Chia-Yuan Li &lt;leo.li@realtek.com&gt;
Signed-off-by: Ping-Ke Shih &lt;pkshih@realtek.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@kernel.org&gt;
Link: https://lore.kernel.org/r/20221102014300.14091-3-pkshih@realtek.com
</content>
</entry>
<entry>
<title>wifi: rtw89: add WoWLAN function support</title>
<updated>2022-11-01T09:26:14Z</updated>
<author>
<name>Chin-Yen Lee</name>
<email>timlee@realtek.com</email>
</author>
<published>2022-10-27T05:27:06Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=19e28c7fcc7408be8479f91d47146245c8be293e'/>
<id>urn:sha1:19e28c7fcc7408be8479f91d47146245c8be293e</id>
<content type='text'>
WoWLAN is a feature which allows devices to be woken up from suspend
state through WLAN events.

When user enables WoWLAN feature and then let the device enter suspend
state, WoWLAN firmware will be loaded by the driver and periodically
monitors WiFi packets. Power consumption of WiFi chip will be reduced
in this state.

We now implement WoWLAN function in rtw8852ae and rtw8852ce chip.
Currently supported WLAN events include receiving magic packet,
rekey packet and deauth packet, and disconnecting from AP.

Signed-off-by: Chin-Yen Lee &lt;timlee@realtek.com&gt;
Signed-off-by: Ping-Ke Shih &lt;pkshih@realtek.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@kernel.org&gt;
Link: https://lore.kernel.org/r/20221027052707.14605-7-pkshih@realtek.com
</content>
</entry>
<entry>
<title>wifi: rtw89: add drop tx packet function</title>
<updated>2022-11-01T09:26:13Z</updated>
<author>
<name>Chih-Kang Chang</name>
<email>gary.chang@realtek.com</email>
</author>
<published>2022-10-27T05:27:04Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=41d567699283b86ce7443a5bf07114f1bde8e203'/>
<id>urn:sha1:41d567699283b86ce7443a5bf07114f1bde8e203</id>
<content type='text'>
When entering WoWLAN mode, we need to drop all transmit packets,
including those in mac buffer, to avoid memory leakage, so implement
the drop_tx function.

Signed-off-by: Chih-Kang Chang &lt;gary.chang@realtek.com&gt;
Signed-off-by: Chin-Yen Lee &lt;timlee@realtek.com&gt;
Signed-off-by: Ping-Ke Shih &lt;pkshih@realtek.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@kernel.org&gt;
Link: https://lore.kernel.org/r/20221027052707.14605-5-pkshih@realtek.com
</content>
</entry>
</feed>
