Commit Graph
2 Commits
Author SHA1 Message Date
nomdetom da47f2093f fix(usb): a scan whose command failed is forgotten, so a late answer cannot finish a freed request
rwnx_cfg80211_scan() stores the request in rwnx_hw->scan_request before sending SCANU_START_REQ. When the send
fails, the error goes back to cfg80211, which frees the request, but scan_request still points at it. A late
SCANU_START_CFM (or the next scan's completion) then calls cfg80211_scan_done() on freed memory.

Seen on an AIC8800DC with a command timeout injected during a scan: the kernel panicked in cfg80211_scan_done(),
caught twice on the serial console.
2026-10-23 08:10:25 +01:00
nomdetom 2e305e8b1f fix(cfg80211): the wiphy may be moved into another network namespace
Without WIPHY_FLAG_NETNS_OK, 'iw phy <phy> set netns' is refused, so the
interface can't be used from a namespace (as test rigs do to pair two radios
in one box). The driver keeps nothing per namespace: its only uses of
init_net are its own netlink control socket and an optional bridge lookup.
2026-10-22 16:18:35 +01:00