<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/net/wireless/realtek/rtlwifi/usb.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-05-13T06:19:44Z</updated>
<entry>
<title>rtlwifi: Use pr_warn instead of WARN_ONCE</title>
<updated>2022-05-13T06:19:44Z</updated>
<author>
<name>Dongliang Mu</name>
<email>mudongliangabcd@gmail.com</email>
</author>
<published>2022-05-11T01:44:52Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=ad732da434a2936128769216eddaece3b1af4588'/>
<id>urn:sha1:ad732da434a2936128769216eddaece3b1af4588</id>
<content type='text'>
This memory allocation failure can be triggered by fault injection or
high pressure testing, resulting a WARN.

Fix this by replacing WARN with pr_warn.

Reported-by: syzkaller &lt;syzkaller@googlegroups.com&gt;
Signed-off-by: Dongliang Mu &lt;mudongliangabcd@gmail.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@kernel.org&gt;
Link: https://lore.kernel.org/r/20220511014453.1621366-1-dzm91@hust.edu.cn
</content>
</entry>
<entry>
<title>rtlwifi: implement set_tim by update beacon content</title>
<updated>2021-04-21T09:39:33Z</updated>
<author>
<name>Ping-Ke Shih</name>
<email>pkshih@realtek.com</email>
</author>
<published>2021-04-19T06:59:56Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=afda33499bea154dc792338c5c51a2038a206785'/>
<id>urn:sha1:afda33499bea154dc792338c5c51a2038a206785</id>
<content type='text'>
Once beacon content is changed, we update the content to wifi card by
send_beacon_frame(). Then, STA with PS can wake up properly to receive its
packets.

Since we update beacon content to PCI wifi devices every beacon interval,
the only one usb device, 8192CU, needs to update beacon content when
mac80211 calling set_tim.

Reported-by: Maciej S. Szmigiero &lt;mail@maciej.szmigiero.name&gt;
Signed-off-by: Ping-Ke Shih &lt;pkshih@realtek.com&gt;
Tested-by: Maciej S. Szmigiero &lt;mail@maciej.szmigiero.name&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20210419065956.6085-1-pkshih@realtek.com
</content>
</entry>
<entry>
<title>rtlwifi: remove redundant assignment to variable err</title>
<updated>2021-04-17T17:29:16Z</updated>
<author>
<name>Colin Ian King</name>
<email>colin.king@canonical.com</email>
</author>
<published>2021-03-27T23:00:14Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=87431bc1f0f67aa2d23ca1b9682fe54f68549d42'/>
<id>urn:sha1:87431bc1f0f67aa2d23ca1b9682fe54f68549d42</id>
<content type='text'>
Variable err is assigned -ENODEV followed by an error return path
via label error_out that does not access the variable and returns
with the -ENODEV error return code. The assignment to err is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20210327230014.25554-1-colin.king@canonical.com
</content>
</entry>
<entry>
<title>rtlwifi: use tasklet_setup to initialize rx_work_tasklet</title>
<updated>2021-02-08T10:37:49Z</updated>
<author>
<name>Emil Renner Berthing</name>
<email>kernel@esmil.dk</email>
</author>
<published>2021-01-26T17:15:50Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=ca04217add8e6c9de96ffb32c4acc8da3fde890f'/>
<id>urn:sha1:ca04217add8e6c9de96ffb32c4acc8da3fde890f</id>
<content type='text'>
In commit d3ccc14dfe95 most of the tasklets in this driver was
updated to the new API. However for the rx_work_tasklet only the
type of the callback was changed from
  void _rtl_rx_work(unsigned long data)
to
  void _rtl_rx_work(struct tasklet_struct *t).

The initialization of rx_work_tasklet was still open-coded and the
function pointer just cast into the old type, and hence nothing sets
rx_work_tasklet.use_callback = true and the callback was still called as

  t-&gt;func(t-&gt;data);

with uninitialized/zero t-&gt;data.

Commit 6b8c7574a5f8 changed the casting of _rtl_rx_work a bit and
initialized t-&gt;data to a pointer to the tasklet cast to an unsigned
long.

This way calling t-&gt;func(t-&gt;data) might actually work through all the
casting, but it still doesn't update the code to use the new tasklet
API.

Let's use the new tasklet_setup to initialize rx_work_tasklet properly
and set rx_work_tasklet.use_callback = true so that the callback is
called as

  t-&gt;callback(t);

without all the casting.

Signed-off-by: Emil Renner Berthing &lt;kernel@esmil.dk&gt;
Acked-by: Willem de Bruijn &lt;willemb@google.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20210126171550.3066-1-kernel@esmil.dk
</content>
</entry>
<entry>
<title>rtlwifi: Fix non-canonical address access issues</title>
<updated>2020-11-07T15:49:57Z</updated>
<author>
<name>WeitaoWangoc</name>
<email>WeitaoWang-oc@zhaoxin.com</email>
</author>
<published>2020-10-27T03:16:20Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c521d7e0ff05257bb9128ab7e68b8e2c084ed361'/>
<id>urn:sha1:c521d7e0ff05257bb9128ab7e68b8e2c084ed361</id>
<content type='text'>
During realtek USB wireless NIC initialization, it's unexpected
disconnection will cause urb sumbmit fail. On the one hand,
_rtl_usb_cleanup_rx will be called to clean up rx stuff, especially for
rtl_wq. On the other hand, disconnection will cause rtl_usb_disconnect
and _rtl_usb_cleanup_rx to be called. So, rtl_wq will be flush/destroy
twice, which will cause non-canonical address 0xdead000000000122 access
and general protection fault.

Fixed this issue by remove _rtl_usb_cleanup_rx when urb sumbmit fail.

Signed-off-by: WeitaoWangoc &lt;WeitaoWang-oc@zhaoxin.com&gt;
Acked-by: Ping-Ke Shih &lt;pkshih@realtek.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/1603768580-2798-1-git-send-email-WeitaoWang-oc@zhaoxin.com
</content>
</entry>
<entry>
<title>rtlwifi: fix build warning</title>
<updated>2020-09-01T08:59:46Z</updated>
<author>
<name>Allen Pais</name>
<email>allen.lkml@gmail.com</email>
</author>
<published>2020-08-31T04:36:59Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=6b8c7574a5f889c8e1fb6ec54b09d8d9d8a9fb37'/>
<id>urn:sha1:6b8c7574a5f889c8e1fb6ec54b09d8d9d8a9fb37</id>
<content type='text'>
Tasklet conversion patch introduced a build
warning in _rtl_usb_init_rx, this patch fixes the warning.

Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Fixes: d3ccc14dfe95 ("rtlwifi/rtw88: convert tasklets to use new tasklet_setup() API")
Signed-off-by: Allen Pais &lt;allen.lkml@gmail.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20200831043659.281712-1-allen.lkml@gmail.com
</content>
</entry>
<entry>
<title>rtlwifi: Replace RT_TRACE with rtl_dbg</title>
<updated>2020-08-31T15:25:43Z</updated>
<author>
<name>Larry Finger</name>
<email>Larry.Finger@lwfinger.net</email>
</author>
<published>2020-07-23T20:42:31Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f108a420e50a62e0bc5cdcd7d4a2440986b526e3'/>
<id>urn:sha1:f108a420e50a62e0bc5cdcd7d4a2440986b526e3</id>
<content type='text'>
The macro name RT_TRACE makes it seem that it is used for tracing, when
is actually used for debugging. Change the name to rtl_dbg. Any Sparse
errors exposed by this change were also fixed.

Signed-off-by: Larry Finger &lt;Larry.Finger@lwfinger.net&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20200723204244.24457-3-Larry.Finger@lwfinger.net
</content>
</entry>
<entry>
<title>rtlwifi/rtw88: convert tasklets to use new tasklet_setup() API</title>
<updated>2020-08-27T13:22:14Z</updated>
<author>
<name>Allen Pais</name>
<email>allen.lkml@gmail.com</email>
</author>
<published>2020-08-17T09:06:36Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d3ccc14dfe9595d5ecd247db27bd66a1343f315a'/>
<id>urn:sha1:d3ccc14dfe9595d5ecd247db27bd66a1343f315a</id>
<content type='text'>
In preparation for unconditionally passing the
struct tasklet_struct pointer to all tasklet
callbacks, switch to using the new tasklet_setup()
and from_tasklet() to pass the tasklet pointer explicitly
and remove .data field.

Signed-off-by: Romain Perier &lt;romain.perier@gmail.com&gt;
Signed-off-by: Allen Pais &lt;allen.lkml@gmail.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20200817090637.26887-16-allen.cryptic@gmail.com
</content>
</entry>
<entry>
<title>rtlwifi: rtl8192cu: Free ieee80211_hw if probing fails</title>
<updated>2020-07-15T10:37:15Z</updated>
<author>
<name>Reto Schneider</name>
<email>code@reto-schneider.ch</email>
</author>
<published>2020-06-22T13:21:13Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=a7f7c15e945a24fbb8ff99d3b19ab0dcd764030d'/>
<id>urn:sha1:a7f7c15e945a24fbb8ff99d3b19ab0dcd764030d</id>
<content type='text'>
In case of an error, no one will use the allocated structure. Call
ieee80211_free_hw, same as in rtl_usb_disconnect.

Signed-off-by: Reto Schneider &lt;code@reto-schneider.ch&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20200622132113.14508-4-code@reto-schneider.ch
</content>
</entry>
<entry>
<title>rtlwifi: rtl8192cu: Prevent leaking urb</title>
<updated>2020-07-15T10:37:13Z</updated>
<author>
<name>Reto Schneider</name>
<email>code@reto-schneider.ch</email>
</author>
<published>2020-06-22T13:21:12Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=03128643eb5453a798db5770952c73dc64fcaf00'/>
<id>urn:sha1:03128643eb5453a798db5770952c73dc64fcaf00</id>
<content type='text'>
If usb_submit_urb fails the allocated urb should be unanchored and
released.

Signed-off-by: Reto Schneider &lt;code@reto-schneider.ch&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/20200622132113.14508-3-code@reto-schneider.ch
</content>
</entry>
</feed>
