aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* wpa_supplicant: delay scans only for android builds (INTERNAL)Eliad Peller2012-08-021-0/+4
| | | | | | | | | | | | commit e48cd17 ("android: Delay scan after startup to prevent race with framework (INTERNAL)") is fixing some bug wrt. android framework, but introduce pretty annoying delay when working with native linux. Surround the new functionality with ifdefs in order to apply it only for android build. Signed-off-by: Eliad Peller <eliad@wizery.com>
* android: Delay scan after startup to prevent race with framework (INTERNAL)Eyal Shapira2012-08-021-1/+1
| | | | | | | | | | | | | | | | | | | | On Android, the immediate scan may cause the following race: 1. Framework starts wpa_s 2. wpa_s loads and initates a scan 3. A matching AP is found and successfully connected to 4. wpa_s reports CTRL-EVENT-CONNECTED but the framework WiFi state machine didn't progress yet to the correct state so this event is unexpected. 5. As a result the DHCP state machine isn't triggered. The end result is successful assoc with the AP but no DHCP request being sent. Avoid this by delaying the initial scan by scan_interval. This doesn't delay getting scan results or connectibg to a rememebered AP as the Android framework initiates a scan through the control interface anyways after detecting that the supplicant started. Signed-off-by: Eyal Shapira <eyal@wizery.com>
* Use normal scan on first scan after initEyal Shapira2012-08-021-4/+1
| | | | | | | | Avoid using sched scan as the initial scan after wpa_s init. This prevents a scenario on Android in which the Android framework scan is preempted by a saved scan_ssid AP being connected to due to immediate sched scan. This delays receiving scan results.
* wpa_supplicant: reduce wps2 IE in conf template (INTERNAL)Ido Reis2012-08-021-0/+5
|
* wpa_supplicant: VERSION_STR_POSTFIX is now defined to 'git describe'Ido Reis2012-08-021-1/+1
|
* print ctrl_iface commandsEliad Peller2012-08-021-0/+1
| | | | | | | | the android wpa_supplicant currently doesn't implement wpa_hexdump_ascii, so add a simple print for the control interface commands Signed-off-by: Eliad Peller <eliad@wizery.com>
* Use exact interface as socket parameter for initIrfan Sheriff2012-08-021-1/+1
| | | | | | | | | | | For p2p, there are virtual interfaces (like p2p-wlan0-X) created and that results in binding to the common init socket right now. Instead, have the init bind fail for p2p interfaces and create seperate sockets specified by the ctrl_interface path in config file Bug: 5002384 Change-Id: Ia155df079a0bcca1871b6bcab2ef7111f0cba6c1
* Android: wpa_s: changes to default build configEyal Shapira2012-08-021-1/+7
| | | | | | | Enable roaming and bgscan Signed-off-by: Eyal Shapira <eyal@wizery.com> Signed-off-by: Ido Reis <idor@ti.com>
* Android: hostapd: enable N rates in build configIdo Reis2012-08-021-1/+1
| | | | Signed-off-by: Ido Reis <idor@ti.com>
* config: enable NL80211Luciano Coelho2012-08-022-2/+2
| | | | | | Just enable it in both hostapd and wpa_s. Signed-off-by: Luciano Coelho <coelho@ti.com>
* nl80211_driver: add private commands to use dropbcastLuciano Coelho2012-08-021-2/+76
| | | | | | | | Add DRIVER DROPBCAST {GET,ENABLE,DISABLE} commands to show the current setting, enable and disable the feature of dropping all broadcast packets while in suspend mode. Signed-off-by: Luciano Coelho <coelho@ti.com>
* nl80211: Implement some private cmdsYotam Rubin2012-08-021-27/+29
| | | | | | | | | | | | | | | | | Implement the LINKSPEED and RSSI/RSSI-APPROX private commands. Upstream implementation sends the HANGED state event on private command failure. Unimplemented commands were sent to the driver as-is, causing the HANGED event to be sent and cause a recovery. Private command handling was modified so that only implemented commands are sent to the driver and the sending of the HANGED event was removed. [Arik - The "linkspeed" driver command incorrectly reported the rate in kbps. Fix this] Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Yotam Rubin <yotam@wizery.com>
* nl80211: add support for drop rx filtersEyal Shapira2012-08-021-0/+34
| | | | | | | | Enable configuring rx filters which will be dropped even if matching another rx filter. This can be used for generating exception filters. Signed-off-by: Eyal Shapira <eyal@wizery.com>
* driver_nl80211: Enable only unicast RXFILTER by defaultPontus Fuchs2012-08-021-1/+10
| | | | | | | | | In GB the framework always enabled RXFILTER for unicast and bcast. This seems to be missing in ICS so enable unicast by default as this is always required. Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com> Signed-off-by: Eyal Shapira <eyal@wizery.com>
* driver_nl80211: Add and align rx filters IDsEyal Shapira2012-08-021-11/+33
| | | | | | | | | | Add more patterns (SSDP, ARP, DHCP) and align IDs to a common vendor Android framework implementation. Note that ARP pattern shouldn't be used as our FW responds to ARPs by default without waking up the host. It is added only for ID alignments purposes. Signed-off-by: Eyal Shapira <eyal@wizery.com>
* driver_nl80211: rx filters - add support for longer patternsEyal Shapira2012-08-021-63/+138
| | | | | | | | | - Add support for long patterns (longer than 8 bytes) - Separate Rx filters static configuration from code - Add DHCP and ARP Rx filters Signed-off-by: Eyal Shapira <eyal@wizery.com> Signed-off-by: Assaf Azulay <assaf@ti.com>
* driver_nl80211: Add support for DRIVER RXFILTER commandPontus Fuchs2012-08-021-0/+174
| | | | | | | Add support for this Android specific feature using WoWLAN packet pattern triggers. Signed-off-by: Pontus Fuchs <pontus.fuchs@tactel.se>
* hostapd: add support for android created sockets (/dev/socket/)Yotam Rubin2012-08-023-6/+48
| | | | | | | | | | | | | | | | Add the same support that wpa_supplicant has with sockets created by the Android system using the init.rc services options Just as the supplicant, if the ctrl_iface is a name and not a path (i.e. doesn't start with '/') the hostapd will assume that this is an Android created socket named wpa_$(ctrl_iface) which is opened in /dev/socket/ hostapd_cli sockets will be created in /data/misc/wifi/sockets The hardcoded configuration is set in the Android.mk of hostapd just like it is with the supplicant. In addition, the hostapd_cli needs an Android property by the name ap.interface to hold the ctrl_iface name to connect to the hostapd's socket.
* wpa_s: make SETBAND take immediate effectVishal Mahaveer2012-08-023-0/+20
| | | | | | | | | | | | Make SETBAND disconnect from the current AP if it's not in the correct band. Also expire APs which aren't in the correct band so scan results will immediately reflect the band change. [Eyal - ammended commit description] Signed-off-by: Panduranga Mallireddy <panduranga_mallireddy@ti.com> Signed-off-by: Vishal Mahaveer <vishalm@ti.com> Signed-off-by: Eyal Shapira <eyal@wizery.com>
* Android: Implement SETBAND for scan requestsJouni Malinen2012-08-023-1/+82
| | | | | | This provides partial SETBAND driver command implementation by converting the request into a filter for which channels are scanned by wpa_supplicant.
* nl80211: Add get_noa() support for WFD certification (BRCM)Dmitry Shmidt2012-08-021-1/+22
| | | | | | | BUG: b/5367351 Change-Id: I14ed79e10ade205c5dd4cdc0d2e888ed1279d1bb Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* nl80211: Special send_mlme rules (BRCM)Dmitry Shmidt2012-08-021-0/+14
| | | | | | | Fix WFD and WPS certification problem for GO (BRCM) Change-Id: I5bbac818aad7c0a14fddb3beb88a6a2d87c07ea0 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* nl80211: Add MLME events (BRCM)Dmitry Shmidt2012-08-021-0/+13
| | | | | | | Fix WFD and WPS certification problem for GO (BRCM) Change-Id: I5bbac818aad7c0a14fddb3beb88a6a2d87c07ea0 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* nl80211: Add set_noa, set_p2p_powersave, set_ap_wps_ieDmitry Shmidt2012-08-022-0/+81
| | | | | | | Fix WFD and WPS certification problem for GO (BRCM) Change-Id: I5bbac818aad7c0a14fddb3beb88a6a2d87c07ea0 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Broadcom: nl80211: Register assoc/disassoc/deauth frames with Probe RequestDmitry Shmidt2012-08-021-0/+30
| | | | | | | | | TODO: This is not the correct place for registering these frames. Would need to first figure out whether these are still needed and if so, for what. Change-Id: Iafec4bedbd33836d0a64e7ea054d8a46ef8ec204 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Add P2P support for BRCM CFG80211 driver (nl80211)Dmitry Shmidt2012-08-021-0/+39
| | | | | Change-Id: Iafec4bedbd33836d0a64e7ea054d8a46ef8ec204 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Android: Add private commands support for nl80211Dmitry Shmidt2012-08-021-3/+29
| | | | | Change-Id: If189933aaf6e629fe8ede0f4e0d0b527f3b47f2e Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Android: nl80211: Add driver_cmd POWERMODE and GETPOWERDmitry Shmidt2012-08-021-0/+71
|
* nl80211: Add private function supportDmitry Shmidt2012-08-021-0/+36
| | | | | Change-Id: Iba9b2ac21f5c7760900c57826b7048ee58928338 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Android: Do not use separate private libJouni Malinen2012-08-022-2/+4
| | | | | | | | The separate private library mechanism used in Android ICS is not very robust when wpa_supplicant/hostapd version changes since the external code is accessing some internal data structures directly. Avoid this type of issues by integrating the private library to be part of wpa_supplicant/hostapd build.
* Set buffer length the same as in wpa_supplicant_ctrl_iface_process()Dmitry Shmidt2012-08-021-2/+2
| | | | | | | Bug: 5236589 Change-Id: Iae8405aa17d5cc6bbffcff3a37d81df74143aabe Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Fix reporting hidden APs during scanDmitry Shmidt2012-08-021-0/+2
| | | | | Change-Id: I2f3274c6f89ac0100331f4987c40e23f36577817 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Add P2P support for BRCM CFG80211 driver (P2P invite running-GO check)Dmitry Shmidt2012-08-021-0/+19
| | | | | Change-Id: Iafec4bedbd33836d0a64e7ea054d8a46ef8ec204 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Android: Define ANDROID_BRCM_P2P_PATCH for Broadcom specific buildsDmitry Shmidt2012-08-022-0/+8
| | | | | | | | | | | | | | | | This is combination of part from Dmitry Shmidt <dimitrysh@google.com> Thu, 21 Jul 2011 15:19:46 -0700 Change-Id: Iafec4bedbd33836d0a64e7ea054d8a46ef8ec204 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com> and Jean-Baptiste Queru <jbq@google.com> Tue, 15 Nov 2011 18:41:36 -0800 Enable broadcom-specific patch with proper flag Change-Id: I5a0f5a2d65963deff3cd62b5e7ec090619c75a2c
* Add WPA_UNICODE_SSID supportDmitry Shmidt2012-08-022-0/+47
| | | | | Change-Id: I1f938b97169d4468ee5b05316826ee509a10d9ad Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Android: wext: Add signal_poll command support (wext)Dmitry Shmidt2012-08-022-3/+35
| | | | | Change-Id: I0ccd9e39928c3e51f1350d2ab34e47ea3191ed0b Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Android: wext: Suppress additional DISASSOCIATE eventsDmitry Shmidt2012-08-022-0/+16
| | | | | Change-Id: Id65428908bca59e71a3ab479b63d992eff96e433 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Android: wext: Add driver_cmd CSCANDmitry Shmidt2012-08-021-0/+115
|
* Android: wext: Add combo_scan()Dmitry Shmidt2012-08-021-0/+103
|
* Android: wext: Add driver_cmdDmitry Shmidt2012-08-021-0/+93
|
* Android: Convert driver_cmd BGSCAN-START/STOP to proper driver_opsJouni Malinen2012-08-021-1/+6
| | | | | Instead of driver specific specific command, use a cleaner design for handling the Android BGSCAN-START/STOP commands.
* Add extended 'driver' commandDmitry Shmidt2012-08-024-0/+57
| | | | | Change-Id: Ib589f44f471c1198973ee0a0695b90097fcc9b33 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Set ap_scan to default in case of disassociationDmitry Shmidt2012-08-021-1/+2
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Fix scan notification in case of canceling scanDmitry Shmidt2012-08-021-0/+1
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Android: Add src directory symlinksDmitry Shmidt2012-08-022-0/+2
| | | | | | | | These are from Android wpa_supplicant_8.git initial 0.8.X commit 8d520ff1dc2da35cdca849e982051b86468016d8. Change-Id: I26aec5afbbd4f4a1f5fd900912545b6f5050de64 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Android: Add MODULE_LICENSE_BSD_LIKEDmitry Shmidt2012-08-021-0/+0
| | | | | | | | These are from Android wpa_supplicant_8.git initial 0.8.X commit 8d520ff1dc2da35cdca849e982051b86468016d8. Change-Id: I26aec5afbbd4f4a1f5fd900912545b6f5050de64 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Android: Add top level makefilesDmitry Shmidt2012-08-022-0/+59
| | | | | | | | These are from Android wpa_supplicant_8.git initial 0.8.X commit 8d520ff1dc2da35cdca849e982051b86468016d8. Change-Id: I26aec5afbbd4f4a1f5fd900912545b6f5050de64 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Revert "P2P: Assume GO Negotiation failed if GO Neg Conf wait times out"Eyal Shapira2012-08-021-8/+0
| | | | | | | Galaxy Nexus takes time to send the GO Neg Confirm (~200ms) and this commit caused the GO Neg to fail because of this. This reverts commit 579a80982ad07619373876c09cdd60e2afcba5b5.
* add set/cancel_priority to ap mode as wellEliad Peller2012-08-027-0/+50
| | | | | | | ROC when the ap gets the first auth request, and CROC after authorization (or after connection fails). Signed-off-by: Eliad Peller <eliad@wizery.com>
* add set/cancel_priority callsEliad Peller2012-08-025-0/+92
| | | | | | | | implement set_priority/cancel_priority functions, and call them in the appropriate places in the STA connection flow. Signed-off-by: Eliad Peller <eliad@wizery.com>