How to set a scan with ath9k driver

Mohammed Shafi Shajakhan mohammed at qca.qualcomm.com
Wed May 22 08:51:59 EDT 2013


On Wed, May 22, 2013 at 02:12:13PM +0200, Francisco Cuesta wrote:
> Hello,
> 
> I would like to know whether someone might point out where a  sta-mode
> scan in ath9k driver is carried out. I mean, if I want to perform such
> a scan, I have seen that hostapd or wpa supplicant requests the driver
> through nl80211 interface such a petition. But I cannot understand how
> this petition is made, in terms of assigning the parameters of the
> scan. How or where is the frequency or channel imposed for such a
> scan?

nl80211 nl80211_trigger_scan->rdev_scan which
calls mac80211's callback iee80211_scan 

iee80211_scan -> ieee80211_request_scan -> ieee80211_start_scan
->ieee80211_start_sw_scan -> queues ieee80211_scan_work

ieee80211_scan_work has the states 
SCAN_DECISION/SET_CHANNEL/PROBE etc

SCAN_SET_CHANNEL calls drivers ath9k_config with CONF_CHANGE_CHANNEL
flag set, please follow from there for the driver code.


> 
> I really appreciate any hint,
> 
> Regards,
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap


More information about the HostAP mailing list