summaryrefslogtreecommitdiffhomepage
path: root/wireless.c
AgeCommit message (Collapse)Author
2020-06-04netifd: wireless: add support for tracking wifi-station sectionsJohn Crispin
This new section allows us to assign mac specific key/vid settings to a station. Signed-off-by: John Crispin <john@phrozen.org>
2020-06-04netifd: wireless: add support for tracking wifi-vlan sectionsJohn Crispin
This new section allows us to create apvlan settings for hostapd. Signed-off-by: John Crispin <john@phrozen.org>
2019-11-12wireless: make reconf opt-in and allow serializing configurationJohn Crispin
Add option 'reconf' to make dynamic re-configuration opt-in. Also add option 'serialize' to 'wifi-device' section and if set configure interfaces of wireless devices one-by-one. Both options are disabled by default. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-10-25wireless: add ubus method for reloading configurationJohn Crispin
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-11-04wireless: Call wireless_interface_handle_link before deleting the vifHans Dedecker
Similar as when updating a vif; call wireless_interface_handle_link removing the vif from the network when deleting a vif Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2016-09-26bridge: Make bridge_device_type staticHans Dedecker
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2016-08-25wireless: remove config_autostartEduardo Abinader
just a cleanup for an unused member. Signed-off-by: Eduardo Abinader <eduardoabinader@gmail.com>
2016-08-24wireless: add retry_setup_failed to status notificationEduardo Abinader
As autostart is now more aligned to user intention of automatic starting the wdev, to add retry_setup_failed to status msg may be of a help for current stating how setup is proceeding. Signed-off-by: Eduardo Abinader <eduardoabinader@gmail.com>
2016-08-23netifd: track when wdev setup failsEduardo Abinader
When netifd failed to load a valid configuration, after an invalid one, it was not possible to setup the wireless device. This patch aims to track this situation and behave acordingly, by keeping track of failed setup without affecting autostart behavior. Also block the restart of the wdev, when not applied. Signed-off-by: Eduardo Abinader <eduardoabinader@gmail.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
2015-12-02wireless: call wireless_interface_handle_link before updating vif configFelix Fietkau
If the network changes, we need to remove the vif from the old network before we lose access to the previous state Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2015-09-26Initialize wireless interface attributes in proper functionDmitry Ivanov
Currently multicast to unicast feature may be configured for incorrect wireless interface in case of reconfiguration. Test case: Initial wireless configuration: config wifi-iface option mode ap option disabled 1 config wifi-iface option mode sta option disabled 0 config wifi-iface option mode ap option disabled 0 After reboot, multicast to unicast feature is configured for interface #3 (wlan0-1) only. Next, enable interface #1 and issue "wifi" command. Now, multicast to unicast feature is configured for interface #2 (wlan0) which is wrong. It should be configured for interfaces #1 and #3 only. This patch resolves this problem. Signed-off-by: Dmitry Ivanov <dima@ubnt.com> Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2015-09-10wireless: fix mcast_to_ucast handling, only apply it to AP modeFelix Fietkau
Fixes a regression that caused WDS stations to repeat packets back to the AP. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2015-08-25bridge: Allow setting multicast_to_unicast optionLinus Lüssing
With this patch the multicast_to_unicast feature can be disabled for all wireless interfaces via an according option on the uci bridge interface. This patch also exports the setting information to wireless handler scripts. The hostapd script will need that information to determine whether to enable or disable ap-isolation, for instance. Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
2015-08-25bridge: Fix multicast_to_unicast feature by hairpin+isolateLinus Lüssing
All IGMP and MLD versions suffer from a specific limitation (from a snooping switch perspective): Report suppression. Once a listener hears an IGMPv2/3 or MLDv1 report for the same group itself participates in then it might (if this listener is an IGMPv3 or MLDv2 listener) or will (if this is an IGMPv1/2 or MLDv1 listener) refrain from sending its own report. Therefore we might currently miss such surpressing listeners as they won't receive the multicast packet with the mangled, unicasted destination. Fixing this by first isolating the STAs and giving the bridge more control over traffic forwarding. E.g. refraining to forward listener reports to other STAs. For broadcast and unicast traffic to an STA on the same AP, the hairpin feature of the bridge will reflect such traffic back to the AP interface. However, if the AP interface is actually configured to isolate STAs, then hairpin is kept disabled. Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
2015-02-28wireless: fix teardown, always pass the previous config to the teardown ↵Felix Fietkau
handler instead of the new one Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-10-24wireless: use strdup for vif sectionsFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-10-04wireless: print the active configuration in status infoFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-10-04wireless: fix blob buf in put_container()Felix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-10-04wireless: copy the vif section name instead of keeping a reference that ↵Felix Fietkau
might go stale Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-07-30netifd: Allow to add link devices which can be marked as non externalHans Dedecker
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-06-29bridge: enable multicast_to_unicast on all wireless bridge portsFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-15wireless: fix cancelling setupFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-04-29netifd: fix a use-after-free issue on wireless config updateFelix Fietkau
After vlist_add() the device could have been freed Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-03-07wireless: defer init until after command line option processingFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-02-23wireless: fix device config reload regressionFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-02-17wireless: add a "get_validate" methode to ubusJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-02-17wireless: load and then ignore disabled devicesJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-12-29wireless: fix alignment of wireless config structs - fixes segfaults on armFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-28wireless: cancel the script check timerFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-11wireless: remove the no_delete flag, remove virtual interfaces from the avl treeFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-11wireless: fix handling of wdev->config_state, prevent handling of multiple ↵Felix Fietkau
state changes (reload + remove) Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-11wireless: remove freed wireless devices from the vlist avl treeFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-08wireless: add back support for multiple networks per interfaceFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-03wireless: make interfaces in status an array instead of an objectFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-03wireless: prepare bridge interfaces before passing them to the setup scriptFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-02wireless: only process setup retries in setup/up stateFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-01wireless: fix reload of active interfacesFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-01wireless: fix issues with cancelling device setupFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-01wireless: add another debug messageFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-01wireless: fix parsing of the immediate flag for kill-allFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-01wireless: add input validation for processesFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-01wireless: fix config state handlingFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-12-01wireless: add debug messagesFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-11-30wireless: fix use-after-free bugFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-11-30wireless: show the virtual interface section name in wireless statusFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-11-30wireless: show the ifname in wireless statusFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-11-29add initial support for handling wireless devices via scriptsFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>