Re: Is this normal: ath9k: Two wiphys trying to scan at the same time

Jouni Malinen
2009-09-26T19:09:21Z

On Thu, Sep 24, 2009 at 01:51:02PM -0700, ASIC Felix wrote:

> is this normal:
>
> ath9k: Two wiphys trying to scan at the same time
>
> afaik, I did not enable virtual phy stuff. Connection appears to be
> working okay. I've been seeing this for quite some time.

That should only be showing up if virtual wiphys are used. In this case,
it should not really be showing up and is likely indicating a bug
somewhere (ath9k or mac80211). I don't know how to reproduce this
easily, so I have not looked into more details yet. It would be
interesting to add printk calls into ath9k_sw_scan_start() and
ath9k_sw_scan_complete() just after the mutex_lock() call to figure out
whether mac80211 ends up calling sw_scan_start() driver handler twice in
a row which would be one possible way to get this triggered. The other
way to hit this would be if ath9k were to somehow not update aphy->state
correctly when the scan has been completed.

--
Jouni Malinen PGP id EFC895FA