hostapd: Detect bridge interface automatically
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.
This commit is contained in:
parent
d455d0806e
commit
94627f6cc8
6 changed files with 225 additions and 5 deletions
|
@ -18,5 +18,10 @@
|
|||
int linux_set_iface_flags(int sock, const char *ifname, int dev_up);
|
||||
int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr);
|
||||
int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr);
|
||||
int linux_br_add(int sock, const char *brname);
|
||||
int linux_br_del(int sock, const char *brname);
|
||||
int linux_br_add_if(int sock, const char *brname, const char *ifname);
|
||||
int linux_br_del_if(int sock, const char *brname, const char *ifname);
|
||||
int linux_br_get(char *brname, const char *ifname);
|
||||
|
||||
#endif /* LINUX_IOCTL_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue