Home > OS >  Linux wifi sending beacon cycle is controlled by the piece of code?
Linux wifi sending beacon cycle is controlled by the piece of code?

Time:11-19

Transplant a wifi driver in the process, found that PC search only briefly to the AP, doubt only send a beacon beacon, wanted to track down, don't know the piece of code in the kernel is responsible for this function,
The application layer to transplant hostapd3.5 libnl, libssl.

CodePudding user response:

Management of wifi connection part of the kernel is cfg80211, hostapd SRC/driver/nl80211 is inside and cfg80211 docking, is take the netlink, netlink communication libnl is responsible for the management of user space library,

CodePudding user response:

Back and think about your problem, beacon cycle is in struct cfg80211_ap_settings there a beacon_interval function, basically, hostapd again hair set_ap should tell how much is the kernel beacon_interval numerical, kernel in. Start_ap callback in the struct cfg80211_ap_settings to wifi driver,
Then between hardware and driver should be regularly to see who is responsible for sending beacon, I see most of the driver is supposed to be the beacon ie to hardware and then by the hardware processing,
  • Related