aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/linux_ioctl.c
Commit message (Collapse)AuthorAgeFilesLines
* nl80211: Ignore netlink interface down if interface is upJouni Malinen2011-10-281-0/+22
| | | | | | | | | | | | | The netlink event processing is delayed since they are only returned after control returns to eloop. This can result in netlink down events being processed at a point when the interface has is actually still there (the first event on new interface is down) and that can result in odd behavior especially when the resulting interface-disabled event is delivered to AP mode interface with wpa_supplicant. Work around this by filtering netlink down events if the matching interface is up at the time the netlink event is processed. This fixes an issue brought up by commit 36d84860bbe09641f782fcc21b09e5a6952b4629.
* nl80211: Stop more quickly on initialization errorsJouni Malinen2011-10-201-2/+5
| | | | | Stop on fatal errors like an attempt to use a non-existing interface or not have root privileges to avoid producing confusing error messages.
* Make sure the resutl from readlink is properly null terminatedJouni Malinen2010-01-161-1/+2
|
* hostapd: Detect bridge interface automaticallyJouni Malinen2010-01-161-0/+98
| | | | | | | | | | | This makes the bridge parameter unnecessary for cases where the interface is already in a bridge and sysfs is mounted to /sys so that the detection code works. For nl80211, the bridge parameter can be used to request the AP interface to be added to the bridge automatically (brctl may refuse to do this before hostapd has been started to change the interface mode). If needed, the bridge interface is also created.
* Use common driver code for Linux hwaddr get/setJouni Malinen2010-01-031-0/+43
|
* Share a single Linux ioctl helper fo setting interface up/downJouni Malinen2010-01-031-0/+56
Number of Linux driver wrappers included this more or less identical function, so lets add a new helper file to be able to share some more code between the driver wrappers.