HomeFreeBSD

MFC r342966:

Description

MFC r342966:
net80211: fix possible panic for some drivers after r342463

Check if rate control structures were allocated before trying to
access them in various places; this was possible before on
allocation failure (unlikely), but was revealed after r342211
where allocation was deferred.

In case if driver uses wlan_amrr(4) and it is loaded it
is possible to reproduce the panic via

sysctl net.wlan.<number>.rate_stats

(for wlan0 the number will be 0).

Details

Provenance
avosAuthored on
Parents
rS343032: MFC r342912:
Branches
Unknown
Tags
Unknown