Hello, I'm trying to implement an application that manages the AP profile for embedded devices that integrates the CAPWAP control protocol. I had to start from scratch because it would be too complex to change the logical structure of hostapd for integrate CAPWAP protocol. However I learned how to use mac80211 looking at the implementation of hostapd. My development environment is CentOS 6.4 with kernel version 2.6.32 and I used mac80211_hwsim module as wireless interface. I have call all mac80211 message needed to generate the IEEE802.11 Management Beacon, IEEE802.11 Management Authentication and IEEE802.11 Association Response. The stations are able to associate to my AP and everything seems to work. Testing my AP on a Fedora 20 with kernel version 3.12.8 the same code does not work. The problem is when I setup the beacon message (NL80211_CMD_START_AP) and change, using netlink, the operating mode of the wireless interface with value IF_OPER_UP. In a first moment the wireless interface goes into a state UP with the flags [UP] [RUNNING] [LOWER_UP]. But soon after his the state becomes DORMANT and flags are [UP] [LOWER_UP]. After many attempts I noticed that waiting a few seconds after enabling the wireless interface (using ioctl[SIOCSIFFLAGS]) and before calling the command mac80211 NL80211_CMD_START_AP, it all back to work. During this waiting the mac80211 driver has time to start an active scan on the wireless interface (the wireless interface is of type AP before being activated). If I enable the beacons without sleep the driver will never start the automatic active scan. Without this automatic scanning I have not found a way to activate the wireless interface. In the kernel 2.6.32 this automatic scan was not necessary. Why the driver mac80211 start this first scan ? This automatic scan is mandatory ? Can i disable this scan ? Thanks for your help, bye Massimo -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html