Re: [PATCH wpan] ieee802154: look up the wpan_phy dump ifindex in the caller's netns

From: Stefan Schmidt

Date: Thu Nov 26 2026 - 04:16:06 EST


Hello Maoyi Xie.

On Tue, 20 Oct 2026 14:51:25 +0800, Maoyi Xie wrote:
> nl802154_dump_wpan_phy_parse() looks up NL802154_ATTR_IFINDEX in
> init_net, while the dump only returns phys in the caller's netns. For a
> caller outside init_net, the result depends on what the ifindex is in
> init_net. If no device there has it, the dump returns -ENODEV, even
> when the ifindex is one of the caller's own 802.15.4 interfaces. If an
> 802.15.4 interface there has it, the dump is empty. If any other device
> there has it, the filter is ignored and the dump returns every phy in
> the caller's netns.
>
> [...]

Applied to wpan/wpan.git, thanks!

[1/1] ieee802154: look up the wpan_phy dump ifindex in the caller's netns
https://git.kernel.org/wpan/wpan/c/680451326592

regards,
Stefan Schmidt