hostapd之hostapd_setup_interface
1.main函数出发

2. hostapd_setup_interface(interfaces.iface[i])

(1)setup_interface(iface)
1. 验证配置的 BSSID 是否有效。

2. 尽早初始化控制接口以允许外部监控
hostapd_ctrl_iface_init

2.1 start_ctrl_iface()函数

2.1.1 ctrl_iface_init值为 hostapd_ctrl_iface_init()
这个ctrl_iface应该对应的就是conf文件中设置的那个文件夹
创建scket,并注册handler大eloop表中

(2)更新网络接口状态为HAPD_IFACE_COUNTRY_UPDATE

(3)根据conf文件设置国家码

(4)进入下一个函数setup_interface2(iface)

setup_interface2(struct hostapd_iface *iface)
1.

浙公网安备 33010602011771号