月份:十月 2017

rtnetlink always triger RTM_NEWLINK periodically on wifi interface

Posted on

enable wifi lan (wlan0) by wpa_supplicant, but rtnetlink triger NEW_LINK

wpa_supplicant.conf contains a network but cannot access nor connect, wifi would retry periodically, so RTM_NEWOINK with IFLAG =  IFF_UP | IFF_BROADCAST (0x1003) send to userspace periodically with each trial.

Solution:

  1. revmoe network from default wpa_supplicant.conf
  2. or set autoscan=period:5  (to set the retry time)
  3. or set sched_scan_plans=sec:trial sec:trial …

If sched_scan_plans are configured and supported by the driver, autoscan is ignored.

解決方式:

廣告