openwrt中负责无线驱动的主要是ath9k.ko mac80211.ko cfg80211.ko
正常的调用路径是
ath_ahb_probe() – ath9k
ieee80211_alloc_hw() – mac80211
wiphy_new() – cfg80211
dev_set_name(&rdev->wiphy.dev, PHY_NAME “%d”, rdev->wiphy_idx);
以在sysfs创建出 /sys/class/ieee80211/phy0/
/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/backports-2017-11-01/drivers/net/wireless/ath/ath9k/
Eeprom.c:661
ath9k_hw_eeprom_init()
ah->eep_ops = &eep_ar9300_ops;
ar9003_eeprom.c :3387
eep_ar9300_ops.fill_eeprom = ath9k_hw_ar9300_fill_eeprom()
–>ar9300_eeprom_restore_internal()
–>ar9300_eeprom_restore_flash () 从Flash的获取ART数据