WiFi 学习资料整理-> Android WiFi
目录
2.2.3 register_netdevice_notifier
2.2.5 debugfs_create_dir("ieee80211", NULL)
2.2.6 create_singlethread_workqueue("cfg80211")
简介
cfg80211: 用于对无线设备进行配置管理。与FullMAC, mac80211和nl80211一起工作。(Kernel态)
上面的说法比较抽象,WiFi NL80211驱动中描述到scan操作上层应用通过netlink把发送到nelink驱动NL80211模块,处理接口为nl80211_trigger_scan
static int nl80211_trigger_scan(struct sk_buff *skb, struct genl_info *info)
{
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct wireless_dev *wdev = info->user_ptr[1];
struct cfg80211_scan_request *request;
struct nlattr *attr;
struct wiphy *wiphy;
int err, tmp, n_ssids = 0, n_chan