aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface_udp.c
Commit message (Collapse)AuthorAgeFilesLines
* wpa_supplicant: Increase UDP control interface RX bufferJanusz Dziedzic2017-10-211-2/+2
| | | | | | | | | | | | | Seems like some test cases, e.g., ap_wpa2_psk_ext_retry_msg_3c, require larger buffer than 256 bytes. In other case I fail such test cases when run on real HW and using: CONFIG_CTRL_IFACE=udp-remote Increase the RX buffer from 256 to 4096 bytes to match the other control interface cases. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
* Fix CONFIG_CTRL_IFACE=udp6/udp6-remote buildsJouni Malinen2016-03-271-1/+7
| | | | | | | | | wpa_supplicant_global_ctrl_iface_receive() did not handle the from address properly for the IPv6 case. This was broken by commit d60886cdafbf839be05ca5f7d4877565d4958a44 ('wpa_supplicant: Add monitor support for global UDP ctrl_iface'). Signed-off-by: Jouni Malinen <j@w1.fi>
* wpa_supplicant: Fix p2p_group_add when UDP-based ctrl_iface is usedJanusz Dziedzic2016-03-201-2/+11
| | | | | | | | | While p2p_group_add ctrl_interface name could be derived from the main interface (simple p2p_group_add command), we failed to bind the same UDP port. Fix this problem and also update the correct ctrl_interface name (port decrement). Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* wpa_supplicant: Add monitor support for global UDP ctrl_ifaceJanusz Dziedzic2016-03-051-19/+61
| | | | | | | Add monitor support (ATTACH/DETACH) for the global ctrl_iface when using the UDP backend. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* wpa_supplicant: Share attach/detach/send UDP ctrl_iface functionsJanusz Dziedzic2016-03-051-17/+29
| | | | | | | | Extend the previously per-interface UDP ctrl_iface functions (attach/detach/send) to support operations on the global interface as well. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* wpa_supplicant: Allow UDP ctrl_iface configuration to set the UDP portJanusz Dziedzic2016-03-051-2/+27
| | | | | | | | | | | | | This allows the UDP port to be set for the per-interface and global control interfaces. The format is: udp:<port_no> For example: wpa_supplicant -Dnl80211 -ddt -g udp:9888 And in the configuration file: ctrl_interface=udp:9877 Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* Document the wpa_msg_cb "global" parameterJouni Malinen2015-06-101-1/+2
| | | | | | | | Instead of an int variable with magic values 0, 1, 2, use an enum that gives clearer meaning to the values now that the original boolean type global argument is not really a boolean anymore. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* Clean up debug prints to use wpa_printf()Jouni Malinen2014-12-261-7/+11
| | | | | | | This converts most of the remaining perror() and printf() calls from hostapd and wpa_supplicant to use wpa_printf(). Signed-off-by: Jouni Malinen <j@w1.fi>
* wpa_supplicant: Add support for IPv6 with UDP ctrl_ifaceJanusz Dziedzic2014-02-251-3/+98
| | | | | | | | | | | | | | | | | | | | Add IPv6 support when using udp/udp-remote control interface using the following new build configuration options: CONFIG_CTRL_IFACE=udp6 CONFIG_CTRL_IFACE=udp6-remote This is useful for testing, while we don't need to assign IPv4 address (static or using DHCP) and can just use auto configured IPv6 addresses (link local, which is based on the MAC address). Also add scope id support for link local case. For example, ./wpa_cli ./wpa_cli -i ::1,9877 ./wpa_cli -i fe80::203:7fff:fe05:69%wlan0,9877 Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* wpa_supplicant: Reduce wait time for control interfacesIlan Peer2013-08-251-2/+2
| | | | | | | | Reduce the wait time for the monitor control interfaces to get messages on wpa_supplicant de-init etc., as this significantly delays the shutdown of the wpa_supplicant. Signed-hostap: Ilan Peer <ilan.peer@intel.com>
* Fix DETACH command debug prints to avoid use of freed memoryJouni Malinen2013-08-241-3/+3
| | | | | | | | | | In case a control interface socket is detached because of sendmsg() failing for the socket, function call to detach the socket uses a pointer to the socket information in the structure to be freed. Reorder code to print socket info before freeing the data to avoid use of freed memory in case debug prints are enabled. Signed-hostap: Jouni Malinen <j@w1.fi>
* Add wpa_msg_global() for global eventsJouni Malinen2013-05-181-1/+1
| | | | | | | This function can be used instead of wpa_msg() and wpa_msg_ctrl() to indicate that an event is not specific to a network interface. Signed-hostap: Jouni Malinen <j@w1.fi>
* wpa_supplicant: Add optional remote access for ctrl_ifaceJanusz Dziedzic2012-08-051-2/+37
| | | | | | | | | Add new option for ctrl iface: CONFIG_CTRL_IFACE=udp-remote. This enables remote access to control interface via UDP port(s). This should be used for testing purpose only since there is no authentication or access control on the commands. Signed-hostap: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* Remove the GPL notification from files contributed by Jouni MalinenJouni Malinen2012-02-111-8/+2
| | | | | | | Remove the GPL notification text from the files that were initially contributed by myself. Signed-hostap: Jouni Malinen <j@w1.fi>
* Remove src/common from default header file pathJouni Malinen2009-11-291-1/+1
| | | | | | | | | | This makes it clearer which files are including header from src/common. Some of these cases should probably be cleaned up in the future not to do that. In addition, src/common/nl80211_copy.h and wireless_copy.h were moved into src/drivers since they are only used by driver wrappers and do not need to live in src/common.
* Re-initialize hostapd/wpa_supplicant git repository based on 0.6.3 releaseJouni Malinen2008-02-281-0/+561