This function pretends to detect whether the card has been reset. It does so by parsing syslog. Apparently it's looking for something like the WARN_ON introduced here:
https://chromium-review.googlesource.com/c/184171/
We haven't ported that to 4.4 (last kernel it appears in so far is 3.18), and even if we did...it is wholly insufficient. For one, we've started using the mwifiex PCIe driver on newer systems (so this wouldn't cover it). And there are also plenty of other wifi drivers out there.
IMO, code like this should simply be retired. Ideally there'd be some other way to check this.
...in fact, isn't there already? I see the only user of this code (network_WiFi_MalformedProbeResp) has:
with self.context.client.assert_no_disconnects():
... do tests
Wouldn't a card reset also show up as a disconnect?
Comment 1 by briannorris@chromium.org
, Sep 2 2017