<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/net/wireless/morsemicro, branch master</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>wifi: mm81x: report non-1MHz frames on the 1MHz control freq</title>
<updated>2026-11-05T10:53:35+00:00</updated>
<author>
<name>Lachlan Hodges</name>
<email>lachlan.hodges@morsemicro.com</email>
</author>
<published>2026-11-05T09:40:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=2823fb11dcf06177a0ae48364400af90337c0f9d'/>
<id>2823fb11dcf06177a0ae48364400af90337c0f9d</id>
<content type='text'>
With the recent changes to the Rx handling in mac80211 6d531b9af16e
("wifi: mac80211: rework RX packet handling") mac80211 is now stricter
when validating frames. Our firmware reports the overall center
frequency of the received frame when mac80211 really expects the
control channel even if the frame was received on a wider channel.

This means management frames sent on the 2MHz primary get dropped
by mac80211 leading to either complete failure to associate if no
station is passed with the frame or just protected management frames
(for example ADDBA requests) which leads to significantly reduced
throughput.

For frames _actually_ sent on a 1MHz channel (such as probe responses)
report the true frequency such that the APs channel can be determined.
For all other frames (i.e beacons sent on a 2MHz primary, data frames
sent on a 2/4/8 etc.) are then reported on the 1MHz control.
This enables 2MHz primarys to be used again.

Fixes: b1906cea00b0 ("wifi: mm81x: add mm81x Wi-Fi HaLow driver")
Link: https://patch.msgid.link/20261105094031.812015-1-lachlan.hodges@morsemicro.com
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With the recent changes to the Rx handling in mac80211 6d531b9af16e
("wifi: mac80211: rework RX packet handling") mac80211 is now stricter
when validating frames. Our firmware reports the overall center
frequency of the received frame when mac80211 really expects the
control channel even if the frame was received on a wider channel.

This means management frames sent on the 2MHz primary get dropped
by mac80211 leading to either complete failure to associate if no
station is passed with the frame or just protected management frames
(for example ADDBA requests) which leads to significantly reduced
throughput.

For frames _actually_ sent on a 1MHz channel (such as probe responses)
report the true frequency such that the APs channel can be determined.
For all other frames (i.e beacons sent on a 2MHz primary, data frames
sent on a 2/4/8 etc.) are then reported on the 1MHz control.
This enables 2MHz primarys to be used again.

Fixes: b1906cea00b0 ("wifi: mm81x: add mm81x Wi-Fi HaLow driver")
Link: https://patch.msgid.link/20261105094031.812015-1-lachlan.hodges@morsemicro.com
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wifi: mm81x: validate YAPS receive framing</title>
<updated>2026-10-07T23:36:12+00:00</updated>
<author>
<name>Felix Hoffmann</name>
<email>f3lix.dev@gmx.de</email>
</author>
<published>2026-10-07T09:30:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=7e6689cbbf9e6040e4ce38656a126459aa994f68'/>
<id>7e6689cbbf9e6040e4ce38656a126459aa994f68</id>
<content type='text'>
The receive byte count comes from device-controlled status registers, but
the packet splitter unconditionally consumes a four-byte delimiter. A count
of one to three bytes therefore makes bytes_remaining negative. If the
reused receive buffer contains a valid delimiter, the negative value is
passed to memcpy() and converted to a near-SIZE_MAX length, corrupting
kernel memory.

YAPS streams are word aligned, so reject byte counts that cannot contain
complete delimiters. Also reject delimiter sizes which do not leave any
packet data after removing the reserved metadata page.

Assisted-by: LLM
Fixes: b1906cea00b0 ("wifi: mm81x: add mm81x Wi-Fi HaLow driver")
Signed-off-by: Felix Hoffmann &lt;f3lix.dev@gmx.de&gt;
Link: https://patch.msgid.link/20261007093021.17132-1-f3lix.dev@gmx.de
[remove Suggested-by and fix Assisted-by]
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The receive byte count comes from device-controlled status registers, but
the packet splitter unconditionally consumes a four-byte delimiter. A count
of one to three bytes therefore makes bytes_remaining negative. If the
reused receive buffer contains a valid delimiter, the negative value is
passed to memcpy() and converted to a near-SIZE_MAX length, corrupting
kernel memory.

YAPS streams are word aligned, so reject byte counts that cannot contain
complete delimiters. Also reject delimiter sizes which do not leave any
packet data after removing the reserved metadata page.

Assisted-by: LLM
Fixes: b1906cea00b0 ("wifi: mm81x: add mm81x Wi-Fi HaLow driver")
Signed-off-by: Felix Hoffmann &lt;f3lix.dev@gmx.de&gt;
Link: https://patch.msgid.link/20261007093021.17132-1-f3lix.dev@gmx.de
[remove Suggested-by and fix Assisted-by]
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wifi: mm81x: copy new sband for each module</title>
<updated>2026-10-07T05:51:24+00:00</updated>
<author>
<name>Lachlan Hodges</name>
<email>lachlan.hodges@morsemicro.com</email>
</author>
<published>2026-10-07T05:00:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4ec869de9c62ff34db1a31fca84c096961175035'/>
<id>4ec869de9c62ff34db1a31fca84c096961175035</id>
<content type='text'>
the sband information existed as a single static struct and was
directly modified in place by both the stack and the driver. If the
regdom was ever changed to 00 where all the S1G channels are NO_IR
and a bus module then removed, these flags would remain even after
changing the regdom and prevent channels from being used.

Instead, make sure we copy the sband each time we init our mac80211
hw such that when a bus module is removed the state is reset and
flags don't persist.

Link: https://patch.msgid.link/20261007050000.127009-4-lachlan.hodges@morsemicro.com
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the sband information existed as a single static struct and was
directly modified in place by both the stack and the driver. If the
regdom was ever changed to 00 where all the S1G channels are NO_IR
and a bus module then removed, these flags would remain even after
changing the regdom and prevent channels from being used.

Instead, make sure we copy the sband each time we init our mac80211
hw such that when a bus module is removed the state is reset and
flags don't persist.

Link: https://patch.msgid.link/20261007050000.127009-4-lachlan.hodges@morsemicro.com
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wifi: mm81x: add monitor mode support</title>
<updated>2026-10-07T05:51:15+00:00</updated>
<author>
<name>Lachlan Hodges</name>
<email>lachlan.hodges@morsemicro.com</email>
</author>
<published>2026-10-07T04:59:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=71a6d9ba64ddba00a241006b95d2d8e8dda15fd6'/>
<id>71a6d9ba64ddba00a241006b95d2d8e8dda15fd6</id>
<content type='text'>
Introduce monitor mode support by extending the command to add a
monitor interface to the firmware and inserting the S1G radiotap TLV.
Also rework the .configure_filter() callback to better handle frame
filtering when we are in monitor mode. This implementation works best
as a standalone sniffer currently, as support is yet to be added in
mac80211 to handle building the radiotap for tx frames (i.e if you
bind a monitor interface to an existing station or AP).

Right now the S1G radiotap header is not really complete and lacks
the ability to convey the frequency offset and correct NDP reporting.
The process to amend the S1G TLV will begin after this initial
support is complete.

Link: https://patch.msgid.link/20261007050000.127009-3-lachlan.hodges@morsemicro.com
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce monitor mode support by extending the command to add a
monitor interface to the firmware and inserting the S1G radiotap TLV.
Also rework the .configure_filter() callback to better handle frame
filtering when we are in monitor mode. This implementation works best
as a standalone sniffer currently, as support is yet to be added in
mac80211 to handle building the radiotap for tx frames (i.e if you
bind a monitor interface to an existing station or AP).

Right now the S1G radiotap header is not really complete and lacks
the ability to convey the frequency offset and correct NDP reporting.
The process to amend the S1G TLV will begin after this initial
support is complete.

Link: https://patch.msgid.link/20261007050000.127009-3-lachlan.hodges@morsemicro.com
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wifi: mm81x: provide the station to mac80211 on rx</title>
<updated>2026-10-07T05:51:07+00:00</updated>
<author>
<name>Lachlan Hodges</name>
<email>lachlan.hodges@morsemicro.com</email>
</author>
<published>2026-10-07T04:59:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=48d051024430f77a47a7f6bca240782b6fc274c0'/>
<id>48d051024430f77a47a7f6bca240782b6fc274c0</id>
<content type='text'>
Right now we look up the station on rx to update its average RSSI but
then hand the frame to mac80211 without it, leaving mac80211 to look
the station up again. Use ieee80211_rx_napi() and rework the code a
bit so we pass the station directly to mac80211 to prevent another
lookup.

Link: https://patch.msgid.link/20261007050000.127009-2-lachlan.hodges@morsemicro.com
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Right now we look up the station on rx to update its average RSSI but
then hand the frame to mac80211 without it, leaving mac80211 to look
the station up again. Use ieee80211_rx_napi() and rework the code a
bit so we pass the station directly to mac80211 to prevent another
lookup.

Link: https://patch.msgid.link/20261007050000.127009-2-lachlan.hodges@morsemicro.com
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wifi: mm81x: check bytes_remaining before reading delimiter</title>
<updated>2026-10-07T03:17:03+00:00</updated>
<author>
<name>Muhammad Bilal</name>
<email>meatuni001@gmail.com</email>
</author>
<published>2026-09-19T19:22:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=54a54c06868d0c2beb9ec3e2ffda0f6cb33d5c8e'/>
<id>54a54c06868d0c2beb9ec3e2ffda0f6cb33d5c8e</id>
<content type='text'>
mm81x_yaps_hw_read_pkts() reads a full 4-byte delimiter and then
subtracts sizeof(delim) from bytes_remaining on every loop iteration,
guarded only by "bytes_remaining &gt; 0". If 1-3 bytes are left in the
window, this reads past the end of the valid data and then subtracts
4 from a value smaller than 4, driving bytes_remaining negative.

A negative bytes_remaining then reaches the total_len &gt; bytes_remaining
branch, where "bytes_remaining" is passed to memcpy() as the copy
length. Implicitly converted to size_t, a negative int becomes a
huge value, turning that memcpy() into a massive out-of-bounds copy.

Bail out of the split loop once fewer than sizeof(delim) bytes remain,
the same way the existing "end of stream" check bails on a zero
delimiter.

Fixes: b1906cea00b0 ("wifi: mm81x: add mm81x Wi-Fi HaLow driver")
Signed-off-by: Muhammad Bilal &lt;meatuni001@gmail.com&gt;
Link: https://patch.msgid.link/20260919192231.272078-1-meatuni001@gmail.com
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
mm81x_yaps_hw_read_pkts() reads a full 4-byte delimiter and then
subtracts sizeof(delim) from bytes_remaining on every loop iteration,
guarded only by "bytes_remaining &gt; 0". If 1-3 bytes are left in the
window, this reads past the end of the valid data and then subtracts
4 from a value smaller than 4, driving bytes_remaining negative.

A negative bytes_remaining then reaches the total_len &gt; bytes_remaining
branch, where "bytes_remaining" is passed to memcpy() as the copy
length. Implicitly converted to size_t, a negative int becomes a
huge value, turning that memcpy() into a massive out-of-bounds copy.

Bail out of the split loop once fewer than sizeof(delim) bytes remain,
the same way the existing "end of stream" check bails on a zero
delimiter.

Fixes: b1906cea00b0 ("wifi: mm81x: add mm81x Wi-Fi HaLow driver")
Signed-off-by: Muhammad Bilal &lt;meatuni001@gmail.com&gt;
Link: https://patch.msgid.link/20260919192231.272078-1-meatuni001@gmail.com
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wifi: mm81x: validate n_channels in disabled channels response</title>
<updated>2026-10-07T02:35:30+00:00</updated>
<author>
<name>Aamir Ahmed</name>
<email>elb12345@hotmail.co.uk</email>
</author>
<published>2026-09-11T22:15:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ad130fe516914076f3fb11940b1bf9181de04425'/>
<id>ad130fe516914076f3fb11940b1bf9181de04425</id>
<content type='text'>
mm81x_mac_check_fw_disabled_chans() iterates over n_channels entries of
the firmware response without validating the response length against
the array size. A firmware response with n_channels larger than
ARRAY_SIZE(mors_s1ghz_channels) reads past the end of the response
buffer. To fix, make sure we validate the length prior to use.

Assisted-by: LLM
Fixes: b1906cea00b0 ("wifi: mm81x: add mm81x Wi-Fi HaLow driver")
Signed-off-by: Aamir Ahmed &lt;elb12345@hotmail.co.uk&gt;
Link: https://patch.msgid.link/AS8P251MB00015A3FFF9F9A9628CB0BB0C8BE2@AS8P251MB0001.EURP251.PROD.OUTLOOK.COM
[slightly reword commit message]
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
mm81x_mac_check_fw_disabled_chans() iterates over n_channels entries of
the firmware response without validating the response length against
the array size. A firmware response with n_channels larger than
ARRAY_SIZE(mors_s1ghz_channels) reads past the end of the response
buffer. To fix, make sure we validate the length prior to use.

Assisted-by: LLM
Fixes: b1906cea00b0 ("wifi: mm81x: add mm81x Wi-Fi HaLow driver")
Signed-off-by: Aamir Ahmed &lt;elb12345@hotmail.co.uk&gt;
Link: https://patch.msgid.link/AS8P251MB00015A3FFF9F9A9628CB0BB0C8BE2@AS8P251MB0001.EURP251.PROD.OUTLOOK.COM
[slightly reword commit message]
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wifi: mm81x: use hweight16() to calculate bit index</title>
<updated>2026-10-07T02:07:06+00:00</updated>
<author>
<name>Yury Norov</name>
<email>ynorov@nvidia.com</email>
</author>
<published>2026-09-25T19:59:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=da28021bc062d9c4dc6e885d6080aafd20359ed5'/>
<id>da28021bc062d9c4dc6e885d6080aafd20359ed5</id>
<content type='text'>
Count the set bits through bit_pos with hweight16() and an inclusive
mask. Preserve the zero fallback and zero-based index.

Signed-off-by: Yury Norov &lt;ynorov@nvidia.com&gt;
Link: https://patch.msgid.link/20260925195908.252810-3-ynorov@nvidia.com
[remove morsemicro prefix from commit message]
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Count the set bits through bit_pos with hweight16() and an inclusive
mask. Preserve the zero fallback and zero-based index.

Signed-off-by: Yury Norov &lt;ynorov@nvidia.com&gt;
Link: https://patch.msgid.link/20260925195908.252810-3-ynorov@nvidia.com
[remove morsemicro prefix from commit message]
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wifi: mm81x: switch to use fns()</title>
<updated>2026-10-07T02:06:54+00:00</updated>
<author>
<name>Yury Norov</name>
<email>ynorov@nvidia.com</email>
</author>
<published>2026-09-25T19:59:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=356ed3640068cccb107373b5314edbea215d72c1'/>
<id>356ed3640068cccb107373b5314edbea215d72c1</id>
<content type='text'>
Replace the local nth_bit() helper with fns(), which provides the same
zero-based set-bit selection for rate capability masks.

Signed-off-by: Yury Norov &lt;ynorov@nvidia.com&gt;
Link: https://patch.msgid.link/20260925195908.252810-2-ynorov@nvidia.com
[remove morsemicro prefix from commit message]
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace the local nth_bit() helper with fns(), which provides the same
zero-based set-bit selection for rate capability masks.

Signed-off-by: Yury Norov &lt;ynorov@nvidia.com&gt;
Link: https://patch.msgid.link/20260925195908.252810-2-ynorov@nvidia.com
[remove morsemicro prefix from commit message]
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>wifi: mm81x: start beaconing on beacon enable not interface add</title>
<updated>2026-10-07T02:03:20+00:00</updated>
<author>
<name>Samuele Yang</name>
<email>samuele.yang@morsemicro.com</email>
</author>
<published>2026-09-29T03:34:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=54b96109768276fa6dd0bad8e5701ad55643412a'/>
<id>54b96109768276fa6dd0bad8e5701ad55643412a</id>
<content type='text'>
Currently we only initialise and start the beaconing process when the
AP interface is first added. If the BSS alone is reconfigured and
beaconing is temporarily stopped, the subsequent call to re-enable
the beacon via BSS_CHANGED_BEACON_ENABLED is ignored and beaconing will
be permanently stopped until the interface is completely re-added.

To fix, move the beaconing start/stop to mm81x_mac_ops_bss_info_changed
and react accordingly to info-&gt;enable_beacon and just keep the per-vif
work item init in the add_interface callback.

Fixes: b1906cea00b0 ("wifi: mm81x: add mm81x Wi-Fi HaLow driver")
Signed-off-by: Samuele Yang &lt;samuele.yang@morsemicro.com&gt;
Link: https://patch.msgid.link/20260929033408.69266-1-samuele.yang@morsemicro.com
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently we only initialise and start the beaconing process when the
AP interface is first added. If the BSS alone is reconfigured and
beaconing is temporarily stopped, the subsequent call to re-enable
the beacon via BSS_CHANGED_BEACON_ENABLED is ignored and beaconing will
be permanently stopped until the interface is completely re-added.

To fix, move the beaconing start/stop to mm81x_mac_ops_bss_info_changed
and react accordingly to info-&gt;enable_beacon and just keep the per-vif
work item init in the add_interface callback.

Fixes: b1906cea00b0 ("wifi: mm81x: add mm81x Wi-Fi HaLow driver")
Signed-off-by: Samuele Yang &lt;samuele.yang@morsemicro.com&gt;
Link: https://patch.msgid.link/20260929033408.69266-1-samuele.yang@morsemicro.com
Signed-off-by: Lachlan Hodges &lt;lachlan.hodges@morsemicro.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
