build-utilities/hostap.git
9 years agoEnable only unicast RXFILTER by default
Eyal Shapira [Thu, 15 Mar 2012 17:50:39 +0000 (19:50 +0200)]
Enable only unicast RXFILTER by default

commit 123075 "Always set RXFILTER 0 and 1"
configured RX filters 0 and 1 by default which would
allow receiving of unicast and bcast traffic by default.
Change that to enable only unicast traffic by default
as this is more common with vendors and bcast traffic
should be usually filtered out unless specifically
configured.

9 years agoP2P: Ignore PBC overlap in P2P provisioning
Eyal Shapira [Thu, 1 Mar 2012 12:01:44 +0000 (14:01 +0200)]
P2P: Ignore PBC overlap in P2P provisioning

PBC overlap can be ignored as the P2P client knows
that it should connect to the P2P GO so no point of failing
the WPS session in case of overlap because some other
AP had WPS PBC on at the same time.

9 years agoIncrease the scan_interval to 15 secs
Eyal Shapira [Wed, 29 Feb 2012 18:20:55 +0000 (20:20 +0200)]
Increase the scan_interval to 15 secs

The current periodic scan by wpa_s is
set to 5 secs. This is too short so increase
it to 15 secs.

9 years agoInitiate a periodic normal scan in addition to sched scan
Eyal Shapira [Wed, 29 Feb 2012 18:16:47 +0000 (20:16 +0200)]
Initiate a periodic normal scan in addition to sched scan

Some applications (e.g. detecting open network around
in Android) require periodic broadcast scan results.
The periodic broadcast scan was replaced by sched scan
completely. Re-enable these scan alongside sched scans.

9 years agoP2P: update scan results
Eliad Peller [Wed, 29 Feb 2012 18:45:58 +0000 (20:45 +0200)]
P2P: update scan results

(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>
9 years agoincrease the eapol pending timer to 500ms
Eliad Peller [Tue, 28 Feb 2012 18:26:50 +0000 (20:26 +0200)]
increase the eapol pending timer to 500ms

9 years agoP2P: notify about disconnection only when needed
Eliad Peller [Tue, 28 Feb 2012 18:23:36 +0000 (20:23 +0200)]
P2P: notify about disconnection only when needed

wpas_notify_state_changed() notifies about disconnection
when new_state < WPA_ASSOCIATED, without checking the
old state. This finally might fire the p2p idle group
timer during the connection attempt.

Signed-off-by: Eliad Peller <eliad@wizery.com>
9 years agoExecute p2p_find instead of p2p_listen
Eliad Peller [Tue, 28 Feb 2012 15:17:07 +0000 (17:17 +0200)]
Execute p2p_find instead of p2p_listen

In order for the Android UI to update its
peers list, p2p_find should be used but the Android
WiFi Direct UI uses p2p_listen for some reason.
So workaround it by starting a p2p_find instead.

9 years agoP2P: ignore neg_req with previously used dialog_token
Eliad Peller [Mon, 27 Feb 2012 13:30:28 +0000 (15:30 +0200)]
P2P: ignore neg_req with previously used dialog_token

The p2p spec is a bit broken. if for some reason we
get 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 he received)...

Workaround it but ignoring negotiation requests with
the last used dialog_token.

Signed-off-by: Eliad Peller <eliad@wizery.com>
9 years agoAdd CONFIG_ROAMING to wpa_s Makefile
Eyal Shapira [Sat, 25 Feb 2012 23:42:01 +0000 (01:42 +0200)]
Add CONFIG_ROAMING to wpa_s Makefile

The option was added only in Android.mk and
was missing in the Makefile used in native linux

9 years agonl80211_driver: add private commands to use dropbcast
Luciano Coelho [Fri, 24 Feb 2012 22:35:28 +0000 (00:35 +0200)]
nl80211_driver: add private commands to use dropbcast

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>
9 years agonl80211: Add and align rx filters IDs
Eyal Shapira [Tue, 21 Feb 2012 22:59:19 +0000 (00:59 +0200)]
nl80211: Add and align rx filters IDs

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.

9 years agoPrevent roaming to a different ESS while connected
Eyal Shapira [Sun, 19 Feb 2012 22:31:07 +0000 (00:31 +0200)]
Prevent roaming to a different ESS while connected

While connected to a certain ESS prevent roaming to a different
ESS AP even if its signal is better. This prevents an undesired
switch between networks in this example scenario:
2 network profiles configured Net1 and Net2. We're already associated
to an AP on the ESS Net1 and while walking with the device we get close
to an AP from ESS Net2. Before this change a decision to switch to
Net2 was made.

9 years agoP2P: Add p2p_cli deinit op
Eliad Peller [Thu, 16 Feb 2012 14:49:06 +0000 (16:49 +0200)]
P2P: Add p2p_cli deinit op

On p2p group removal, the GO is deinitialized correctly
(and the vif mode is set back to sta), but the P2P_CLI
isn't deinitialized, and the vif stays in P2P_CLI mode.

Add a new deinit_p2p_cli op (similar to deinit_ap), which
currently only sets the interface back to sta mode.

Signed-off-by: Eliad Peller <eliad@wizery.com>
9 years agoIgnore a deauth from a different BSS than the current one
Eyal Shapira [Thu, 16 Feb 2012 22:25:14 +0000 (00:25 +0200)]
Ignore a deauth from a different BSS than the current one

This fixes an issue with roaming where the previous
BSS would send a DEAUTH during the roaming and this
would caused the supplicant to disconnect.

9 years agoRoam back to the origin AP when assoc/auth times out
Eyal Shapira [Thu, 16 Feb 2012 01:32:52 +0000 (03:32 +0200)]
Roam back to the origin AP when assoc/auth times out

When roaming, avoid going to DISCONNECTED in case assoc or auth
times out with the new AP. Instead attempt to reconnect
back to old AP.

9 years agobgscan_learn: implement notify_beacon_loss hook
Eyal Shapira [Wed, 15 Feb 2012 13:05:26 +0000 (15:05 +0200)]
bgscan_learn: implement notify_beacon_loss hook

Trigger immediate scan and switch to short interval upon
receiving beacon loss indication

TODO: implement this also in bgscan_simple

9 years agobgscan_learn: Scan all channels in certain scenarios
Eyal Shapira [Wed, 15 Feb 2012 11:23:04 +0000 (13:23 +0200)]
bgscan_learn: Scan all channels in certain scenarios

The current scanning of learned frequencies and only a single
new frequency every interval may result in a very long time until
a specific channel where a BSS candidate operates would be scanned
(especially if working on both 2.4 and 5Ghz). To better handle
this scan all frequencies when signal is low and we haven't learned
more than 1 channel.

9 years agoinitiate roaming on beacon_loss
Eliad Peller [Mon, 13 Feb 2012 21:58:08 +0000 (23:58 +0200)]
initiate roaming on beacon_loss

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>
9 years agoupdate nl80211_copy.h
Eliad Peller [Mon, 13 Feb 2012 21:58:07 +0000 (23:58 +0200)]
update nl80211_copy.h

Signed-off-by: Eliad Peller <eliad@wizery.com>
9 years agoAdd blacklist expiration
Eliad Peller [Mon, 13 Feb 2012 21:58:06 +0000 (23:58 +0200)]
Add blacklist expiration

With the current implementation, once a BSS was added
to the blacklist, it can't go out. Add a simple timeout
(2 minutes) to allow blacklist expiration.

TODO: the timeout should probably be set more dynamically,
or at least make it configurable...

Signed-off-by: Eliad Peller <eliad@wizery.com>
9 years agoFix initial interval of bgscan_learn
Eyal Shapira [Mon, 13 Feb 2012 23:10:09 +0000 (01:10 +0200)]
Fix initial interval of bgscan_learn

In case the initial signal level of the associated BSS
was above the given threshold , bgscan_learn module would
begin using the short_interval but never switch to the
long_interval as there would be no signal change event.
Make the init code poll for the current signal level and
set scan_interval accordingly.
This logic exists in bgscan_simple but was missing in
bgscan_learn.

9 years agoAdd API and CLI command to control sched scan intervals
Eyal Shapira [Sun, 12 Feb 2012 23:59:31 +0000 (01:59 +0200)]
Add API and CLI command to control sched scan intervals

Enable control over the sched scan intervals parameters
through a new wpa_s API (SCHED_SCAN_INTERVALS) and a
matching wpa_cli command.

Signed-off-by: Eyal Shapira <eyal@wizery.com>
9 years agohostapd: only updated already-set beacons when processing OLBC
Luciano Coelho [Tue, 6 Mar 2012 09:46:49 +0000 (11:46 +0200)]
hostapd: only updated already-set beacons when processing OLBC

When hostapd is about to start an AP using HT40, it starts a scan to
check whether it is allowed or not.  If OLBC is detected before the
scan has completed, it sets the beacons prematurely.

To fix this, instead of setting all beacons when OLBC is detected,
only update the ones that have already been started.

Signed-off-by: Luciano Coelho <coelho@ti.com>
9 years agoconfig: enable NL80211
Luciano Coelho [Wed, 15 Feb 2012 22:55:05 +0000 (00:55 +0200)]
config: enable NL80211

Just enable it in both hostapd and wpa_s.

Signed-off-by: Luciano Coelho <coelho@ti.com>
9 years agowpa_s: add API to disable or enable roaming
Eyal Shapira [Sun, 12 Feb 2012 10:15:50 +0000 (12:15 +0200)]
wpa_s: add API to disable or enable roaming

If bgscan is configured then it will be disabled and enabled
as well as roaming. This allows wpa_s users to disable roaming
and bgscan when they wish (e.g. device screen is turned off/on)
To disable send "SET roaming_disabled 1" and to enable replace with 0.

9 years agowpa_supplicant: update config file to support bgscan
Ido Reis [Thu, 29 Dec 2011 12:49:34 +0000 (14:49 +0200)]
wpa_supplicant: update config file to support bgscan

Change-Id: Iec36d01c34e53c6e503d1078f5a43277b78c7378
Signed-off-by: Ido Reis <idor@ti.com>
9 years agohostapd: enable N rates in .config
Ido Reis [Thu, 29 Dec 2011 12:15:28 +0000 (14:15 +0200)]
hostapd: enable N rates in .config

Change-Id: I945161d57a1c7c326bbc1f172eae2d7c3211a733
Signed-off-by: Ido Reis <idor@ti.com>
9 years agowpa_s: Disable bgscan and roaming when driver support is limited
Eyal Shapira [Tue, 24 Jan 2012 16:24:15 +0000 (18:24 +0200)]
wpa_s: Disable bgscan and roaming when driver support is limited

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>
9 years agonl80211: Handle ROAMING_SUPPORT event
Eyal Shapira [Tue, 24 Jan 2012 16:24:14 +0000 (18:24 +0200)]
nl80211: Handle ROAMING_SUPPORT event

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>
9 years agosched scan: add support for short and long intervals
Eyal Shapira [Wed, 18 Jan 2012 14:19:24 +0000 (16:19 +0200)]
sched scan: add support for short and long intervals

Configure sched scan to use short and long intervals
if the driver supports it

9 years agosched scan: Add config parameters for short and long intervals
Eyal Shapira [Mon, 16 Jan 2012 23:13:35 +0000 (01:13 +0200)]
sched scan: Add config parameters for short and long intervals

Part of support for short and long intervals

9 years agosched scan: read driver support for sched scan intervals
Eyal Shapira [Tue, 17 Jan 2012 00:16:06 +0000 (02:16 +0200)]
sched scan: read driver support for sched scan intervals

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.

9 years agonl80211: sync with linux/nl80211.h
Eyal Shapira [Thu, 19 Jan 2012 05:27:40 +0000 (07:27 +0200)]
nl80211: sync with linux/nl80211.h

9 years agoFix wpa_supplicant and hostapd native linux compilation
Eyal Shapira [Wed, 4 Jan 2012 13:53:50 +0000 (15:53 +0200)]
Fix wpa_supplicant and hostapd native linux compilation

Android related stuff weren't ifdef'd properly
which broke down native linux compilation

9 years agoFix deauth with reason 7 due to multiple assoc_req received
Eyal Shapira [Wed, 8 Feb 2012 14:51:01 +0000 (16:51 +0200)]
Fix deauth with reason 7 due to multiple assoc_req received

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>
9 years agosave eapol for later use (EAPOL Start race)
Eliad Peller [Wed, 7 Dec 2011 00:50:00 +0000 (02:50 +0200)]
save eapol for later use (EAPOL Start race)

[ Includes null check missing from the original patch - Arik ]

Signed-off-by: Arik Nemtsov <arik@wizery.com>
9 years agoadd station before getting assoc resp tx completion
Eliad Peller [Thu, 29 Dec 2011 11:58:19 +0000 (13:58 +0200)]
add station before getting assoc resp tx completion

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>
9 years agoAP: use uapsd if go_apsd was set
Eliad Peller [Sun, 24 Jul 2011 07:09:37 +0000 (10:09 +0300)]
AP: use uapsd if go_apsd was set

don't set params.uapsd to -1, as it's a valid value.

set conf->bss->wmm_enabled and conf->bss->wmm_uapsd
to enable (and advertise) wmm.

This is currently only a workaround, until we'll have
a more generic way to set GO params.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
9 years agoP2P: use GO channel for Operating Channel IE
Eliad Peller [Mon, 22 Aug 2011 13:40:29 +0000 (16:40 +0300)]
P2P: use GO channel for Operating Channel IE

[ To be upstreamed - Arik ]

Change-Id: I5285126515b47cd3b4cdce717310835f23a78f0a
Signed-off-by: Eliad Peller <eliad@wizery.com>
9 years agonl80211: Do not send HANGED event on private command failure
Yotam Rubin [Mon, 26 Dec 2011 16:39:16 +0000 (18:39 +0200)]
nl80211: Do not send HANGED event on private command failure

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

9 years agosched scan: Continue to scan even if previous scan cancel fails
Eyal Shapira [Sun, 18 Dec 2011 07:18:22 +0000 (09:18 +0200)]
sched scan: Continue to scan even if previous scan cancel fails

cancel_sched_scan might fail if there wasn't any scan going
on before. This shouldn't stop a new sched scan attempt.

Signed-off-by: Eyal Shapira <eyal@wizery.com>
9 years agosched scan: Avoid changing state to SCANNING
Eyal Shapira [Mon, 26 Dec 2011 13:34:29 +0000 (15:34 +0200)]
sched scan: Avoid changing state to SCANNING

sched scan was indicating to the supplicant that scanning was in progress
which prevented broadcast scan attempts from cli (or in Android from the
framework).

Signed-off-by: Eyal Shapira <eyal@wizery.com>
9 years agosched scan: Logic changes
Eyal Shapira [Mon, 26 Dec 2011 13:21:12 +0000 (15:21 +0200)]
sched scan: Logic changes

Scan up to 16 network of the top priority in the configuration using
sched scan. If there are more than 16 use normal scan as well.
Stop using the timeout mechanism and interval/timeout backoffs.

Signed-off-by: Eyal Shapira <eyal@wizery.com>
9 years agosched scan: Avoid scan if no enabled networks
Eyal Shapira [Mon, 26 Dec 2011 13:01:32 +0000 (15:01 +0200)]
sched scan: Avoid scan if no enabled networks

There's no point to sched scan when there's no enabled networks.
This also fixes a bug where the supplicant would reset
its scan results in case such a sched scan was initiated
and therefore would cause a "flickering" network list effect on Android.
(For a moment you see the network list and the next it's empty)

Signed-off-by: Eyal Shapira <eyal@wizery.com>
9 years agosched scan: Continue to scan even if previous scan cancel fails
Eyal Shapira [Mon, 26 Dec 2011 12:42:49 +0000 (14:42 +0200)]
sched scan: Continue to scan even if previous scan cancel fails

cancel_sched_scan might fail if there wasn't any scan going
on before. This shouldn't stop a new sched scan attempt.

Signed-off-by: Eyal Shapira <eyal@wizery.com>
9 years agosched scan: Update scan according to changes in network list
Eyal Shapira [Mon, 26 Dec 2011 12:19:24 +0000 (14:19 +0200)]
sched scan: Update scan according to changes in network list

sched scan wasn't updated according to changes in the network list
(enable/disable/remove). This caused the FW to continue scanning
with the wrong list configured which triggered problems.

Signed-off-by: Eyal Shapira <eyal@wizery.com>
9 years agosched scan: Turn passive scan into active
Eyal Shapira [Mon, 26 Dec 2011 11:47:49 +0000 (13:47 +0200)]
sched scan: Turn passive scan into active

In case there are no scan_ssid networks in the conf
passive scan was done. Better do an active scan using
broadcast probe request as it's shorter

9 years agosched scan: Fallback to normal scan during WPS
Eyal Shapira [Mon, 26 Dec 2011 11:28:04 +0000 (13:28 +0200)]
sched scan: Fallback to normal scan during WPS

This is a fix for the WPS problem where WPS
session wasn't initiated until an manual scan was triggered.
During WPS session we need a periodic broadcast scan
to occur so that APs will see that we're in WPS session.

Signed-off-by: Eyal Shapira <eyal@wizery.com>
9 years agoAlways set RXFILTER 0 and 1
Pontus Fuchs [Fri, 30 Dec 2011 09:19:35 +0000 (10:19 +0100)]
Always set RXFILTER 0 and 1

In ginger these filters where always set but they where removed
completely in ICS. They need to be active for unicast and bcast
to work. Make sure they are always set.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
9 years agoRemove ARP wowlan wakeup pattern
Eyal Shapira [Sun, 18 Dec 2011 07:18:20 +0000 (09:18 +0200)]
Remove ARP wowlan wakeup pattern

As FW now includes Auto ARP response there's no
need to wakeup on ARPs

Signed-off-by: Eyal Shapira <eyal@wizery.com>
9 years agodriver_nl80211: rx filters - add support for longer patterns
Eyal Shapira [Tue, 3 Jan 2012 11:47:00 +0000 (13:47 +0200)]
driver_nl80211: rx filters - add support for longer patterns

- 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>
9 years agodriver_nl8011: Add support for DRIVER RXFILTER command
Pontus Fuchs [Mon, 26 Dec 2011 10:14:24 +0000 (12:14 +0200)]
driver_nl8011: Add support for DRIVER RXFILTER command

Add support for this Android specific feature using WoWLAN packet
pattern triggers.

Signed-off-by: Pontus Fuchs <pontus.fuchs@tactel.se>
9 years agowpa_supplicant: change config - enable ROAMING, 11n and remove rand-pool
Yotam Rubin [Sun, 25 Dec 2011 15:46:27 +0000 (17:46 +0200)]
wpa_supplicant: change config - enable ROAMING, 11n and remove rand-pool

CONFIG_ROAMING flag was added in Android for roaming and it is
turned off by default.

Also turn on 11N in wpa_supplicant and disable the random-pool (to speed
up connection operations)

Change-Id: I3eb21cc5da656e7686e2f1f8d20df2e86696e788
Signed-off-by: Vishal Mahaveer <a0271468@ti.com>
9 years agonl80211: Add missing code in wpa_driver_nl80211_probe_req_report
Vishal Mahaveer [Mon, 24 Oct 2011 22:01:00 +0000 (16:01 -0600)]
nl80211: Add missing code in wpa_driver_nl80211_probe_req_report

Commit "6e933c1e09094a8972ef1e782c57f8b3c55c91d0" removed piece of code from
wpa_driver_nl80211_probe_req_report API.

Adding it back.

Change-Id: I51bab24d5a84244c462539d0cd0b625e4281e92f
Signed-off-by: Vishal Mahaveer <a0271468@ti.com>
9 years agohostapd: add support for android created sockets (/dev/socket/)
Yotam Rubin [Sun, 25 Dec 2011 13:39:38 +0000 (15:39 +0200)]
hostapd: add support for android created sockets (/dev/socket/)

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.

9 years agoAndroid: Implement SETBAND for scan requests
Jouni Malinen [Fri, 9 Mar 2012 05:28:13 +0000 (21:28 -0800)]
Android: Implement SETBAND for scan requests

This provides partial SETBAND driver command implementation by
converting the request into a filter for which channels are scanned
by wpa_supplicant.

9 years agonl80211: Add get_noa() support for WFD certification (BRCM)
Dmitry Shmidt [Wed, 28 Sep 2011 20:29:53 +0000 (13:29 -0700)]
nl80211: Add get_noa() support for WFD certification (BRCM)

BUG: b/5367351

Change-Id: I14ed79e10ade205c5dd4cdc0d2e888ed1279d1bb
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
9 years agonl80211: Special send_mlme rules (BRCM)
Dmitry Shmidt [Tue, 27 Sep 2011 19:29:26 +0000 (12:29 -0700)]
nl80211: Special send_mlme rules (BRCM)

Fix WFD and WPS certification problem for GO (BRCM)

Change-Id: I5bbac818aad7c0a14fddb3beb88a6a2d87c07ea0
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
9 years agonl80211: Add MLME events (BRCM)
Dmitry Shmidt [Tue, 27 Sep 2011 19:29:26 +0000 (12:29 -0700)]
nl80211: Add MLME events (BRCM)

Fix WFD and WPS certification problem for GO (BRCM)

Change-Id: I5bbac818aad7c0a14fddb3beb88a6a2d87c07ea0
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
9 years agonl80211: Add set_noa, set_p2p_powersave, set_ap_wps_ie
Dmitry Shmidt [Tue, 27 Sep 2011 19:29:26 +0000 (12:29 -0700)]
nl80211: Add set_noa, set_p2p_powersave, set_ap_wps_ie

Fix WFD and WPS certification problem for GO (BRCM)

Change-Id: I5bbac818aad7c0a14fddb3beb88a6a2d87c07ea0
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
9 years agoBroadcom: nl80211: Register assoc/disassoc/deauth frames with Probe Request
Dmitry Shmidt [Thu, 21 Jul 2011 22:19:46 +0000 (15:19 -0700)]
Broadcom: nl80211: Register assoc/disassoc/deauth frames with Probe Request

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>
9 years agoAdd P2P support for BRCM CFG80211 driver (nl80211)
Dmitry Shmidt [Thu, 21 Jul 2011 22:19:46 +0000 (15:19 -0700)]
Add P2P support for BRCM CFG80211 driver (nl80211)

Change-Id: Iafec4bedbd33836d0a64e7ea054d8a46ef8ec204
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
9 years agoAndroid: Add private commands support for nl80211
Dmitry Shmidt [Wed, 23 Nov 2011 14:21:15 +0000 (16:21 +0200)]
Android: Add private commands support for nl80211

Change-Id: If189933aaf6e629fe8ede0f4e0d0b527f3b47f2e
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
9 years agoAndroid: nl80211: Add driver_cmd POWERMODE and GETPOWER
Dmitry Shmidt [Fri, 25 Nov 2011 18:19:26 +0000 (20:19 +0200)]
Android: nl80211: Add driver_cmd POWERMODE and GETPOWER

9 years agonl80211: Add private function support
Dmitry Shmidt [Thu, 7 Jul 2011 21:22:14 +0000 (14:22 -0700)]
nl80211: Add private function support

Change-Id: Iba9b2ac21f5c7760900c57826b7048ee58928338
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
9 years agoAndroid: Do not use separate private lib
Jouni Malinen [Wed, 16 Nov 2011 12:57:40 +0000 (14:57 +0200)]
Android: Do not use separate private lib

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.

9 years agoSet buffer length the same as in wpa_supplicant_ctrl_iface_process()
Dmitry Shmidt [Tue, 30 Aug 2011 18:10:13 +0000 (11:10 -0700)]
Set buffer length the same as in wpa_supplicant_ctrl_iface_process()

Bug: 5236589

Change-Id: Iae8405aa17d5cc6bbffcff3a37d81df74143aabe
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
9 years agoFix reporting hidden APs during scan
Dmitry Shmidt [Mon, 22 Aug 2011 22:04:04 +0000 (15:04 -0700)]
Fix reporting hidden APs during scan

Change-Id: I2f3274c6f89ac0100331f4987c40e23f36577817
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
9 years agoAdd P2P support for BRCM CFG80211 driver (P2P invite running-GO check)
Dmitry Shmidt [Thu, 21 Jul 2011 22:19:46 +0000 (15:19 -0700)]
Add P2P support for BRCM CFG80211 driver (P2P invite running-GO check)

Change-Id: Iafec4bedbd33836d0a64e7ea054d8a46ef8ec204
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
9 years agoAndroid: Define ANDROID_BRCM_P2P_PATCH for Broadcom specific builds
Dmitry Shmidt [Thu, 21 Jul 2011 22:19:46 +0000 (15:19 -0700)]
Android: Define ANDROID_BRCM_P2P_PATCH for Broadcom specific builds

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

9 years agoAdd WPA_UNICODE_SSID support
Dmitry Shmidt [Fri, 15 Jul 2011 22:32:26 +0000 (15:32 -0700)]
Add WPA_UNICODE_SSID support

Change-Id: I1f938b97169d4468ee5b05316826ee509a10d9ad
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
9 years agoAndroid: wext: Add signal_poll command support (wext)
Dmitry Shmidt [Fri, 25 Nov 2011 20:06:01 +0000 (22:06 +0200)]
Android: wext: Add signal_poll command support (wext)

Change-Id: I0ccd9e39928c3e51f1350d2ab34e47ea3191ed0b
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
9 years agoAndroid: wext: Suppress additional DISASSOCIATE events
Dmitry Shmidt [Fri, 25 Nov 2011 20:00:43 +0000 (22:00 +0200)]
Android: wext: Suppress additional DISASSOCIATE events

Change-Id: Id65428908bca59e71a3ab479b63d992eff96e433
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
9 years agoAndroid: wext: Add driver_cmd CSCAN
Dmitry Shmidt [Fri, 25 Nov 2011 19:42:06 +0000 (21:42 +0200)]
Android: wext: Add driver_cmd CSCAN

9 years agoAndroid: wext: Add combo_scan()
Dmitry Shmidt [Fri, 25 Nov 2011 19:32:19 +0000 (21:32 +0200)]
Android: wext: Add combo_scan()

9 years agoAndroid: wext: Add driver_cmd
Dmitry Shmidt [Fri, 25 Nov 2011 19:23:04 +0000 (21:23 +0200)]
Android: wext: Add driver_cmd

9 years agoAndroid: Convert driver_cmd BGSCAN-START/STOP to proper driver_ops
Jouni Malinen [Wed, 23 Nov 2011 15:48:31 +0000 (17:48 +0200)]
Android: Convert driver_cmd BGSCAN-START/STOP to proper driver_ops

Instead of driver specific specific command, use a cleaner design
for handling the Android BGSCAN-START/STOP commands.

9 years agoAdd extended 'driver' command
Dmitry Shmidt [Mon, 9 May 2011 21:17:09 +0000 (14:17 -0700)]
Add extended 'driver' command

Change-Id: Ib589f44f471c1198973ee0a0695b90097fcc9b33
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
9 years agoSet ap_scan to default in case of disassociation
Dmitry Shmidt [Mon, 11 Apr 2011 22:58:40 +0000 (15:58 -0700)]
Set ap_scan to default in case of disassociation

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
9 years agoFix scan notification in case of canceling scan
Dmitry Shmidt [Fri, 8 Apr 2011 22:35:17 +0000 (15:35 -0700)]
Fix scan notification in case of canceling scan

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
9 years agoAndroid: Add src directory symlinks
Dmitry Shmidt [Tue, 15 Nov 2011 14:00:34 +0000 (16:00 +0200)]
Android: Add src directory symlinks

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>
9 years agoAndroid: Add MODULE_LICENSE_BSD_LIKE
Dmitry Shmidt [Tue, 15 Nov 2011 13:58:56 +0000 (15:58 +0200)]
Android: Add MODULE_LICENSE_BSD_LIKE

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>
9 years agoAndroid: Add top level makefiles
Dmitry Shmidt [Tue, 15 Nov 2011 13:56:58 +0000 (15:56 +0200)]
Android: Add top level makefiles

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>
9 years agodbus: Make P2P group properties accessible individually
Todd Previte [Mon, 5 Mar 2012 15:25:08 +0000 (17:25 +0200)]
dbus: Make P2P group properties accessible individually

Group properties are now accessible individually. The function to retrieve
the dictionary containing the group properties is removed in favor of the
individual functions. The group member properties are removed as well as
they erroneously retrieved the group properties via the old function.

Signed-hostap: Todd Previte <toddx.a.previte@intel.com>
Signed-hostap: Angie Chinchilla <angie.v.chinchilla@intel.com>
intended-for: hostap-1

9 years agoWPS: Select the BSD license terms as the only license alternative
Masashi Honma [Mon, 5 Mar 2012 15:15:47 +0000 (17:15 +0200)]
WPS: Select the BSD license terms as the only license alternative

I changed license terms which I can change.
(email of Mon, 5 Mar 2012 22:59:02 +0900 to hostap@lists.shmoo.com)

9 years agoBSS: Fix use-after-realloc
Eliad Peller [Mon, 5 Mar 2012 15:09:55 +0000 (17:09 +0200)]
BSS: Fix use-after-realloc

After reallocation of the bss struct, current_bss wasn't updated and
could hold an invalid pointer (which might get dereferenced later).

Update current_bss if the pointer was changed.

Signed-hostap: Eliad Peller <eliad@wizery.com>
intended-for: hostap-1

9 years agoTTLS: Fix peer challenge generation for TTLS/MSCHAPv2
Jouni Malinen [Mon, 5 Mar 2012 14:59:03 +0000 (16:59 +0200)]
TTLS: Fix peer challenge generation for TTLS/MSCHAPv2

Commit 30680e9332c96803533b9dae6105fd7b15b5bb52 changed the length
of the implicit challenge result to match with the exact length used
in TTLS. However, it failed to update the peer_challenge generation
to use a separate random value. Previously, this was generated as
part of the implicit challenge, but more correct way would have been
to generate a random value for it separately. Do this now to fix the
read after the allocated buffer (16 bytes after the implicit
challenge).

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
intended-for: hostap-1

9 years agoAP: remove ssi_signal from ap_info
Johannes Berg [Mon, 5 Mar 2012 14:38:26 +0000 (16:38 +0200)]
AP: remove ssi_signal from ap_info

It is never used.

Signed-hostap: Johannes Berg <johannes.berg@intel.com>

9 years agoP2P: Filter input parameters in p2p_serv_disc_external
Grzegorz Bajorski [Mon, 5 Mar 2012 14:26:19 +0000 (16:26 +0200)]
P2P: Filter input parameters in p2p_serv_disc_external

p2p_ctrl_serv_disc_external() can take only one parameters "0" or "1".

Signed-hostap: Grzegorz Bajorski <grzegorz.bajorski@tieto.com>

9 years agoFilter station mode EAPOL RX on bridge interface based on destination
Jouni Malinen [Mon, 5 Mar 2012 13:22:42 +0000 (15:22 +0200)]
Filter station mode EAPOL RX on bridge interface based on destination

If multiple station mode radios are bridged together on the same device,
it is possible for wpa_supplicant to receive EAPOL frames from the
bridge interface and then process them separately for each interface.
This can results in problems since multiple instances of supplicant side
could end up trying to process a single 4-way handshake. Avoid this
problem by filtering bridge interface EAPOL RX based on the desctination
MAC address. It should be noted that this works only when unicast
addresses are used (e.g., with WLAN) and not with the IEEE 802.1X EAPOL
group address (e.g., most wired networks).

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

9 years agoFix memory leak on parsing multiple network block eap entries
Jouni Malinen [Sun, 4 Mar 2012 14:13:00 +0000 (16:13 +0200)]
Fix memory leak on parsing multiple network block eap entries

Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1

9 years agoInterworking: Use EAP-AKA if USIM is used
Jouni Malinen [Sun, 4 Mar 2012 14:11:02 +0000 (16:11 +0200)]
Interworking: Use EAP-AKA if USIM is used

Signed-hostap: Jouni Malinen <j@w1.fi>

9 years agoInterworking: Support real SIM/USIM card for network selection
Jouni Malinen [Sun, 4 Mar 2012 14:02:56 +0000 (16:02 +0200)]
Interworking: Support real SIM/USIM card for network selection

Signed-hostap: Jouni Malinen <j@w1.fi>

9 years agoInterworking: Make plmn_id_match() for generic
Jouni Malinen [Sun, 4 Mar 2012 09:27:38 +0000 (11:27 +0200)]
Interworking: Make plmn_id_match() for generic

Use separate mnc_len parameter instead of expecting the imsi parameter
to be in special MCC|MNC|-|<MSIN> format to make this function more
generic.

Signed-hostap: Jouni Malinen <j@w1.fi>

9 years agoInterworking: Fix credential block example
Jouni Malinen [Sun, 4 Mar 2012 09:24:24 +0000 (11:24 +0200)]
Interworking: Fix credential block example

Signed-hostap: Jouni Malinen <j@w1.fi>

9 years agoSCARD: Increase application template DO buffer size
Jouni Malinen [Sat, 3 Mar 2012 16:15:23 +0000 (18:15 +0200)]
SCARD: Increase application template DO buffer size

This DO has a maximum length of 127 bytes (TS 102 221), so better use
large enough buffer when reading the record.

Signed-hostap: Jouni Malinen <j@w1.fi>

9 years agoSCARD: Move SIM file definitions into the C file
Jouni Malinen [Sat, 3 Mar 2012 16:10:37 +0000 (18:10 +0200)]
SCARD: Move SIM file definitions into the C file

These are used only within pcsc_funcs.c so no need to define the
file identifiers in the header file.

Signed-hostap: Jouni Malinen <j@w1.fi>

9 years agoSCARD: Add function for fetching PIN retry counter
Jouni Malinen [Sat, 3 Mar 2012 11:51:34 +0000 (13:51 +0200)]
SCARD: Add function for fetching PIN retry counter

Signed-hostap: Jouni Malinen <j@w1.fi>

9 years agoSCARD: Add debug dumps of FCP template TLVs in SELECT response
Jouni Malinen [Sat, 3 Mar 2012 11:28:46 +0000 (13:28 +0200)]
SCARD: Add debug dumps of FCP template TLVs in SELECT response

Signed-hostap: Jouni Malinen <j@w1.fi>