Hi Amit On Thu, Jul 23, 2015 at 11:09 PM, <Valdis.Kletnieks@xxxxxx> wrote: > On Thu, 23 Jul 2015 12:31:18 +0530, Amit Gupta said: > >> Configuration file: /etc/hostapd.conf >> [ 199.672712] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready >> Failed to update rate sets in kernel module >> [ 199.687566] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready >> Using interface wlan0 with hwaddr 00:0e:8e:38:29:e6 and ssid 'test_wifi_2' >> >> >> Eventhough I am getting this error log from user space application(hostapd) >> code, my wifi device is working fine. But I want to remove this error log >> and want to know the root cause this error log. > > My gut reaction is that hostapd is issuing ioctl() calls in the wrong order > and/or failing to allow a long enough delay or wait for a specific event. > > I'd recommend running something like: > > # strace -f hostapd -B /etc/hostapd.conf > /tmp/strace.out 2>&1 The driver gets notified of this change via netlink socks. I also face the same issue and so far I found this Hostapd calls --->i802_set_rate_sets which then creates a nlmsg which is handled in driver as --driver-- -->nl80211_set_bss --->rdev_change_bss now change_bss is defined as ieee80211_change_bss (net/mac80211/cfg.c) unless ofcourse your driver provides something else. There seems to be no error from here. So maybe it's the send_recv call in hostapd in function i802_set_rate_sets? I'll look into it more. > > and go look for what failing call was made just before the write call > that output 'Failed to update'. Hopefully, tracing the flow of that > call will reveal a kernel code path that output the 'link is not ready' > message. Then you'll know what 'if (somecondition)' landed you in that > situation. > > Knowing that, it will become a lot easier to figure out what happened. > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies@xxxxxxxxxxxxxxxxx > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > -- ---P.K.S _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies