aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* 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>
* Add WPA_UNICODE_SSID supportDmitry Shmidt2012-08-021-0/+2
| | | | | 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
|
* Add extended 'driver' commandDmitry Shmidt2012-08-021-0/+11
| | | | | Change-Id: Ib589f44f471c1198973ee0a0695b90097fcc9b33 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-022-0/+71
| | | | | | | | 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>
* initiate roaming on beacon_lossEliad Peller2012-08-023-0/+7
| | | | | | | | | Add wpa_s->roaming to indicate (forced) roaming request. set it on beacon_loss event. (no need to disconnect if there is no available ap, as the driver will send disassoc after some time) Signed-off-by: Eliad Peller <eliad@wizery.com>
* wpa_s: don't reschedule the sched scan on each scan complete eventVictor Goldenshtein2012-08-022-4/+7
| | | | | | | | | | | wpa_supplicant doesn't distinguish between NL80211_CMD_SCHED_SCAN_RESULTS and NL80211_CMD_NEW_SCAN_RESULTS, this causing unnecessary rescheduling of the sched scan on each scan complete event. Reschedule the sched scan (stop + start) only if the scan results are from the sched scan. Signed-off-by: Victor Goldenshtein <victorg@ti.com>
* P2P: update scan resultsEliad Peller2012-08-021-2/+13
| | | | | | | | | (not sure this should go upstream) update p2p scan results (and notify) if the listen_freq or go_state were changed. Signed-off-by: Eliad Peller <eliad@wizery.com>
* wpa_s: Disable bgscan and roaming when driver support is limitedEyal Shapira2012-08-021-0/+2
| | | | | | | | Some drivers are limited in certain conditions (e.g. wl12xx on multi role with a single channel) and would like wpa_s to disable bgscan and roaming attempts in these situations. Signed-off-by: Eyal Shapira <eyal@wizery.com>
* nl80211: Handle ROAMING_SUPPORT eventEyal Shapira2012-08-022-0/+38
| | | | | | | | Some drivers may notify us that roaming support changed. This is passed on to wpa_s in order to take that into account regarding bgscan and roaming. Signed-off-by: Eyal Shapira <eyal@wizery.com>
* sched scan: add support for short and long intervalsEyal Shapira2012-08-022-34/+54
| | | | | Configure sched scan to use short and long intervals if the driver supports it
* sched scan: read driver support for sched scan intervalsEyal Shapira2012-08-022-0/+7
| | | | | | | Use the feature flag reported by NL80211 to know if the driver supports short and long intervals in the sched scan API. This is a prep patch for the actual handling of this flag.
* ap: add missing WLAN_STA_ASSOC_REQ_OK flag cleanupsEliad Peller2012-08-022-5/+6
| | | | | | | | | | | | cleanup of WLAN_STA_ASSOC_REQ_OK flag is missing in some places (e.g. when deauth a sta). (This in turn caused problems when working as GO, as our internal commit (a3e0a16 "Fix deauth with reason 7 due to multiple assoc_req received") caused reassociations (after WPS) to get dropped. Signed-off-by: Eliad Peller <eliad@wizery.com>
* Fix deauth with reason 7 due to multiple assoc_req receivedEyal Shapira2012-08-021-0/+9
| | | | | | | | | | | | | | | Additional assoc_reqs received after an initial assoc_req (due to a timeout in the STA) was already being handled caused the handle_assoc flow to run again and in the process delete the station added to the driver (in add_pre_assoc_sta). A race would occur where assoc_resp was already sent to the STA (as part of the handling of the initial assoc_req) and it sent a null data packet which arrived while the station was deleted. This caused the packet to be classified as a class 3 frame coming from an unknown STA and a deauth would occur. Fix this by discarding additional assoc_req between receiving the 1st assoc_req and getting a tx callback for the assoc_resp. Signed-off-by: Eyal Shapira <eyal@wizery.com>
* save eapol for later use (EAPOL Start race)Eliad Peller2012-08-024-0/+38
| | | | | | [ Includes null check missing from the original patch - Arik ] Signed-off-by: Arik Nemtsov <arik@wizery.com>
* add station before getting assoc resp tx completionEliad Peller2012-08-021-39/+48
| | | | | | | | | Add the station before sending the association response (rather than after tx completion), in order to handle EAPOL-Start before tx completion race. Signed-off-by: Arik Nemtsov <arik@wizery.com>
* driver_nl80211: disable 11b rates on interface changeEliad Peller2012-07-301-0/+2
| | | | | | | | | | 11b rates were disabled during interface addition, but not on interface mode change. Disable/Enable 11b rates in wpa_driver_nl80211_set_mode(), according to the interface type (p2p or not). Signed-hostap: Eliad Peller <eliad@wizery.com>
* driver_nl80211: set ap params before beaconingEliad Peller2012-07-301-3/+4
| | | | | | | | | | We currently set some of the bss params (e.g. basic rates) only after the beacon was set, resulting in beacons being sent with invalid params (e.g. wrong rate). Fix it by setting the ap params before setting the beacon. Signed-hostap: Eliad Peller <eliad@wizery.com>
* p2p: consider age for the p2p scan resultsYoni Divinsky2012-07-306-11/+36
| | | | | | | | | | | | | | | | | Cfg80211 caches the scan results according the channel number. Due to the 15 sec aging this might cause the user mode to see more than one scan result with the same BSSID, e.g. - one scan result for the p2p-device and one for the p2p-GO (once it's enabled). Fix this by updating the device entry only if the new peer entry is newer than the one previously stored. Signed-off-by: Yoni Divinsky <yoni.divinsky@ti.com> Signed-off-by: Victor Goldenshtein <victorg@ti.com> Signed-off-by: Igal Chernobelsky <igalc@ti.com>
* P2P: ignore neg_req with previously used dialog_tokenEliad Peller2012-07-301-0/+8
| | | | | | | | | | | | If for some reason we get a duplicate negotiation request, the supplicant will generate 2 different responses (different SSIDs) with the same dialog token. The remote peer will confirm one of them, but it will probably be the wrong one (the first it received). Workaround it by ignoring negotiation requests with the last used dialog_token. Signed-off-by: Eliad Peller <eliad@wizery.com>
* P2P: use GO channel for Operating Channel IEEliad Peller2012-07-303-3/+3
| | | | | | | [ To be upstreamed - Arik ] Change-Id: I5285126515b47cd3b4cdce717310835f23a78f0a Signed-off-by: Eliad Peller <eliad@wizery.com>
* P2P: enable to set in the conf file the wmm paramsYoni Divinsky2012-07-305-14/+85
| | | | | | | | | | In case of P2P GO, the wpa_supplicant uses the default hostapd parameters. In the default parameters the ACM bit for video and voice are set to 1, meaning, P2P devices and stations which are connected to the GO cannot pass voice or video data packets. Signed-hostap: Yoni Divinsky <yoni.divinsky@ti.com>
* update nl80211_copy.h (INTERNAL)Arik Nemtsov2012-07-301-1/+171
| | | | | | | File taken from 18xx/mc_internal, commit bc9a7d08c5c. Kernel 3.5rc7. Signed-off-by: Arik Nemtsov <arik@wizery.com>
* nl80211: Support setting sched scan RSSI thresholdThomas Pedersen2012-07-252-2/+25
| | | | | | | | | Allow the user to configure an RSSI threshold in dBm below which the nl80211 driver won't report scan results. Currently only supported during scheduled (PNO) scans. Signed-off-by: Thomas Pedersen <c_tpeder@qca.qualcomm.com> Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* P2P: Fix provision discovery retries during p2p_findJouni Malinen2012-07-232-5/+11
| | | | | | | | | | | | Commit 6b56cc2d97fe9efd1feea8d418714b4658b056f1 added retries of provision discovery request frames in IDLE state. However, it did not make the p2p_find case behave consistently with the new limitied retry behavior. This can result in way too many and frequent PD retries. Fix this by extending the previous commit to address PD retries and maximum retry limit consistently regardless of whether p2p_find is running. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com> intended-for: hostap-1
* WPS SSDP: Fix socket leaks on error pathsJouni Malinen2012-07-071-1/+6
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* WPS UDF: Fix fd leak on error pathJouni Malinen2012-07-071-1/+3
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* Fix AP build without NEED_AP_MLMEJouni Malinen2012-07-071-0/+2
| | | | | | | | | | Commit 1b487b8b1e95e1fbd9e00d52d883ba0ac4c2e4bf added CH_SWITCH event for nl80211, but ended up using hostapd_hw_get_channel() regardless of build configuration for driver interfaces. This function is not always available, so make its use conditional on NEED_AP_MLME. Signed-hostap: Jouni Malinen <j@w1.fi>
* OpenSSL: Add support for HMAC functions with 0.9.8 and olderJouni Malinen2012-07-071-0/+9
| | | | | | | | | | Commit d9cc4646eb0255be31f11d8a8edad857431fdf49 added crypto_hash_{init,update,finish}() wrappers for OpenSSL, but it assumed the current HMAC API in OpenSSL. This was changed in 0.9.9 to return error codes from the functions while older versions used void functions. Add support for the older versions, too. Signed-hostap: Jouni Malinen <j@w1.fi>
* nl80211: Save VHT capabilities from the driverMahesh Palivela2012-07-041-0/+12
| | | | | | Save VHT capabilities coming through nl80211 within hostapd. Signed-hostap: Mahesh Palivela <maheshp@posedge.com>
* Sync with linux/nl80211.h from wireless-testing.gitJouni Malinen2012-07-041-0/+14
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>