Re: [PATCH 05/14] mwifiex: re-register wiphy across reset

From: Johannes Berg
Date: Thu Jun 22 2017 - 09:00:15 EST

On Wed, 2017-06-21 at 10:48 -0700, Brian Norris wrote:
> Yes, that all sounds nice. But for my sake, can you describe better
> what's actually going on there (e.g., can you point me at which code
> does this)?

It's much easier with mac80211, it has all the state. Basically the
reconfig is in ieee80211_reconfig() :)

> I'm really not familiar with mac80211 (though I was aware of
> the above general behavior). But to my knowledge, mac80211 drivers
> keep a lot more state managed in the kernel, so it's a little easier
> and more natural to get the driver/FW back to "the same state" than
> it is with a full-MAC driver.