aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers
Commit message (Collapse)AuthorAgeFilesLines
* nl80211: add support for DRIVER COUNTRY commandVishal Mahaveer2012-11-111-0/+2
| | | | | | Add this for supporting country command coming as DRIVER command in Android. Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
* Revisit "nl80211: dummy DRIVER SETBAND handler"Vishal Mahaveer2012-09-281-3/+3
| | | | | | | Used the wrong string compare API before. Fix it by using the correst API. Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
* nl80211: dummy DRIVER SETBAND handlerVishal Mahaveer2012-09-251-0/+3
| | | | | | | | SETBAND command is handled in wpa_supplicant_driver_cmd API. Add a dummy handler in driver_nl80211 for avoiding misleading log, "Unsupported command: SETBAND ". Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
* nl80211_copy: update from latest 12xx drv (INTERNAL)Arik Nemtsov2012-09-131-0/+26
| | | | | | add channel switch related commands and attributes Signed-off-by: Arik Nemtsov <arik@wizery.com>
* nl80211: add channel switch ability to AP & GO (INTERNAL)Victor Goldenshtein2012-09-131-4/+69
| | | | | | | | Implement AP channel switch command. Handle channel switch request and channel switch complete events. Signed-hostap: Victor Goldenshtein <victorg@ti.com>
* hostap: add channel switch ability to AP & GO (INTERNAL)Victor Goldenshtein2012-09-132-1/+9
| | | | | | | | | | | | | | | Add channel switch command and handle channel switch request/complete events. New hostapd_eid_csa() which builds the channel switch announcement IE. Add this CSA to the beacon frame prior performing a channel switch and remove it once it's completed. New EVENT_REQ_CH_SW which indicates that the driver has requested to perform a channel switch. Signed-hostap: Victor Goldenshtein <victorg@ti.com>
* hostapd: implement channel switch request drv ops (INTERNAL)Victor Goldenshtein2012-09-131-0/+19
| | | | | | New hostapd_channel_switch – to handle channel switch request. Signed-hostap: Victor Goldenshtein <victorg@ti.com>
* nl80211: make unicast RX filter always match STA iface mac (ANDROID)Eyal Shapira2012-09-131-4/+4
| | | | | | | | | | | | | | This is part of changing the RX filters configuration to being global and not dependent on the interface context. RX filter #0 should point to a filter matching any unicast frame sent to the STA (wlan0) mac. The configuration is done by querying the mac address of the interface. As we now have reconfiguration of filters done from the context of the p2p interface filter #0 would get reconfigured with the P2P dev mac. Avoid this by hard coded querying for the mac of wlan0 when creating the pattern for RX filter #0. Signed-off-by: Eyal Shapira <eyal@wizery.com>
* nl80211: reconfigure RX filters whenever a new interface is added (ANDROID)Eyal Shapira2012-09-131-0/+35
| | | | | | | | | | This is used to reconfigure RX filters to include a new filter whenever the P2P group interface is added. The new filter matches any unicast frame sent to a dest mac which matches the P2P group interface mac. This is important as otherwise we wouldn't allow any data frames through to this interface. Signed-off-by: Eyal Shapira <eyal@wizery.com>
* nl80211: support configuring RX filters dynamically (ANDROID)Eyal Shapira2012-09-121-5/+128
| | | | | | | | | | | | The current RX filters are statically defined and can only be enabled or disabled by the DRIVER RX-FILTER commands. Add support to add or remove RX filters "on the fly" from within wpa_s code so we can use this to add an RX filter matching unicast packets going to the new P2P interface mac. Whenever the filters change the whole list of filters needs to be configured to the kernel. Signed-off-by: Eyal Shapira <eyal@wizery.com>
* nl80211: make rx filters config global (ANDROID)Eyal Shapira2012-09-121-12/+24
| | | | | | | | | | | | The RX filters (wowlan) configuration is per interface but this doesn't reflect the state in the kernel where it's per hw device (effectively in Android global). In JB this is more important as wpa_s uses up to 3 different interfaces when running P2P+STA. Also, fix a minor bug in nl80211_toggle_wowlan_trigger where the wpa_s wowlan state changed even if configuring the kernel failed. Signed-off-by: Eyal Shapira <eyal@wizery.com>
* nl80211: Remove driver specific commands not used in JB (JB)Eyal Shapira2012-09-121-99/+0
| | | | | | | | | | The following driver specific commands aren't used in JB and were replaced by other APIs: POWERMODE,GETPOWER,LINKSPEED,RSSI,RSSI-APPROX Remove code handling these commands. Signed-off-by: Eyal Shapira <eyal@wizery.com>
* nl80211: Remove driver command DROPBCAST (ANDROID)Eyal Shapira2012-09-121-74/+0
| | | | | | | | There's no support for this in the driver for now as the relevant patches were dropped. Therefore remove relevant code in wpa_s as well. Signed-off-by: Eyal Shapira <eyal@wizery.com>
* Fix a couple memory leaksPaul Stewart2012-08-081-1/+4
| | | | | | Found using valgrind. Signed-hostap: Paul Stewart <pstew@chromium.org>
* nl80211: avoid using another interface for P2P GO (INTERNAL)Eyal Shapira2012-08-021-1/+0
| | | | | | | | | | | | | | | | | Relevant for wl6/7 only, we need to figure out the wl8 MR case. We now declare iface combinations in wlcore due to cfg80211 enforcement of that. Since we declare support for concurrent STA and P2P_GO, wpa_s would like to use another interface for GO. However, since we don't really support P2P_GO so well in MR but we do want to enable it in MR, prevent wpa_s from using P2P concurrent mode. This should be removed once we support P2P_GO properly in MR. [Arik - should be changed to a configuration parameter to wpa_s, and the current default should be preserved] Signed-off-by: Eyal Shapira <eyal@wizery.com>
* nl80211: add parameter to force multi channel concurrency (BRCM)Eyal Shapira2012-08-021-0/+9
| | | | | | | Add a parameter which can be set from wpa_s commandline or conf file to force real multi channel. Signed-off-by: Eyal Shapira <eyal@wizery.com>
* nl80211: fix extending shared_freq detection to AP/GO (BRCM)Eyal Shapira2012-08-021-0/+4
| | | | | | | | Commit d3bd0f "nl80211: Extend shared_freq to handle AP/GO mode interfaces" still discards AP/GO interfaces so effectively shared_freq won't work on AP/GO interaces like intended. Signed-off-by: Eyal Shapira <eyal@wizery.com>
* nl80211: Use native cfg80211 sta events (BRCM)Dmitry Shmidt2012-08-021-90/+15
| | | | | | | | | | [Eyal - Keep specific BRCM specific stuff under ANDROID_BRCM_P2P_PATCH and not ANDROID_P2P which TI solution compiles with] Change-Id: I0f6222839ac87241f1bfbbb1fdc6469bf6359652 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com> Signed-off-by: Eyal Shapira <eyal@wizery.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>
* 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: 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>
* 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>
* 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.
* 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-301-1/+2
| | | | | | | | | | | | | | | | | 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>