summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix radius_example buildAmit Khatri2014-04-041-1/+2
| | | | | | radius_example needs the -lrt option to build with some glibc versions. Signed-off-by: Amit Khatri <amit.khatri@samsung.com>
* Interworking: Add writing of forgotten cred parameters into config fileJouni Malinen2014-04-041-0/+26
| | | | | | | | req_conn_capab and required_roaming_consortium parameters were not written into the cred block when requesting wpa_supplicant to write the configuration file. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Extend wpas_ctrl_cred to cover most cred block operationsJouni Malinen2014-04-042-17/+109
| | | | | | This verifies the new cred modification events and GET_CRED. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* Interworking: Add GET_CRED ctrl_iface commandJouni Malinen2014-04-044-0/+334
| | | | | | | | | | | "GET_CRED <id> <field>" can now be used to fetch credential parameters over the control interface. This does not allow passwords etc. private material to be retrieved ("*" is returned for those if the value is set regardless of the value). FAIL is returned if the requested parameter has not been set. For cred parameters that can have multiple values, newline separated list of values is returned. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* Interworking: Add ctrl_iface events on cred block modificationsJouni Malinen2014-04-042-1/+21
| | | | | | | | | | | Following events are now sent to ctrl_iface monitors to indicate if credential blocks have been added, modified, or removed: CRED-ADDED <id> CRED-MODIFIED <id> <field> CRED-REMOVE <id> Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Run make clean for hwsim_test before rebuilding itAmit Khatri2014-04-012-0/+5
| | | | | | This makes sure that the build.sh script ends up rebuilding hwsim_test. Signed-off-by: Amit Khatri <amit.khatri@samsung.com>
* wpa_supplicant: Allow disabling LDPCPawel Kulakowski2014-04-014-0/+37
| | | | | | | Allows user to disable LDPC coding. This possibility is useful for testing purpose. Signed-off-by: Pawel Kulakowski <pawel.kulakowski@tieto.com>
* Interworking: Read IMSI if not read at supplicant startJean Trivelly2014-03-311-4/+31
| | | | | | | It is required to read IMSI from SIM if it has not already been done when comparing HS 2.0 AP 3GPP information with the local credentials. Signed-off-by: Jean Trivelly <jean.trivelly@intel.com>
* Interworking: Init scard when a credential requires SIM accessJean Trivelly2014-03-312-4/+6
| | | | | | | | When an ANQP fetch is triggered and ANQP_3GPP_CELLULAR_NETWORK info is required, initialize scard to be ready when comparing ANQP and credentials. Signed-off-by: Jean Trivelly <jean.trivelly@intel.com>
* Interworking: Fix incorrect compile PCSC flagJean Trivelly2014-03-311-2/+2
| | | | | | CONFIG_PCSC is used instead of PCSC_FUNCS. Signed-off-by: Jean Trivelly <jean.trivelly@intel.com>
* edit: Increase buffer size to 4096 bytesJouni Malinen2014-03-312-2/+2
| | | | | | | | | wpa_supplicant and wpa_cli had already moved to allowing up to 4096 byte buffer size to be used for control interface commands. This was limited by the line edit buffer in interactive mode. Increase that limit to match the other buffers to avoid artificially truncating long commands. Signed-off-by: Jouni Malinen <j@w1.fi>
* OSU server: Add example scripts for Hotspot 2.0 PKIJouni Malinen2014-03-3112-0/+515
| | | | | | | These can be used to generate certificates for developer testing of the OSU protocol. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* HS 2.0R2: Add example OSU SPP server implementationJouni Malinen2014-03-3119-0/+3760
| | | | | | | | This is meant mainly for testing purposes and as a reference implementation showing how OSU SPP server could be implemented. This is not suitable for any real production use in its current form. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* XML: Remove forgotten, unused definition of debug_print_funcJouni Malinen2014-03-311-3/+0
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Prevent grpform_pbc_overlap_group_iface failuresJouni Malinen2014-03-301-2/+6
| | | | | | | | | | Do not report missing PBC overlap detection as an issue in this test case since the sequence can miss the overlap due to per-SSID scan used during group formation. In addition, increase AP beaconing frequency to make it more likely for a Beacon frame to be seen during the optimized scan. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Make grpform_pbc_overlap* more likely to clear stateJouni Malinen2014-03-301-0/+18
| | | | | | | The PBC overlap state could remain for the next test case and result in unexpected failure reports. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: hostapd configuration parametersJouni Malinen2014-03-305-0/+246
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* Make hs20_wan_metrics parser error print more helpfulJouni Malinen2014-03-301-1/+1
| | | | | | | pos == NULL in almost all of the error cases here, so print the full parameter value instead of the current position. Signed-off-by: Jouni Malinen <j@w1.fi>
* Fix validation of anqp_3gpp_cell_net configuration parameterJouni Malinen2014-03-301-1/+1
| | | | | | The "< '0' && > '9'" part would not match any character. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Update hlr_auc_gw Milenage fileJouni Malinen2014-03-301-1/+2
| | | | | | | This increases hlr_auc_gw.c test coverage and allows the SQN updated to be checked if desired. Signed-off-by: Jouni Malinen <j@w1.fi>
* Remove duplicated vht_capab parser entryJouni Malinen2014-03-301-2/+0
| | | | | | | [VHT160-80PLUS80] was parsed twice with the second copy not really doing anything useful. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: hostapd MAC ACL file entry removalJouni Malinen2014-03-301-0/+4
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: VLAN using vlan_file mappingJouni Malinen2014-03-302-0/+17
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: STA disconnection due to MAC ACL file changeJouni Malinen2014-03-301-0/+33
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* Notify STA of disconnection based on ACL changeJouni Malinen2014-03-301-4/+4
| | | | | | | | ap_sta_deauthenticate() does not necessarily send a Deauthentication frame to the STA. Use ap_sta_disconnect() to drop the association so that the notification frame goes out. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: hostapd control interface error casesJouni Malinen2014-03-301-0/+64
| | | | | | | Invalid parameters to HS20_WNM_NOTIF, HS20_DEAUTH_REQ, DISASSOC_IMMINENT, and ESS_DISASSOC. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: EAP-SIM server using GSM tripletsJouni Malinen2014-03-303-1/+24
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: RADIUS MAC ACLJouni Malinen2014-03-292-0/+10
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* RADIUS server: Add support for MAC ACLJouni Malinen2014-03-298-15/+135
| | | | | | | "user" MACACL "password" style lines in the eap_user file can now be used to configured user entries for RADIUS-based MAC ACL. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Unknown Action frame categoryJouni Malinen2014-03-291-0/+14
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: max_num_sta limitJouni Malinen2014-03-291-0/+13
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: max_listen_interval rejecting associationJouni Malinen2014-03-291-0/+14
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: OSEN network and invalid association without OSEN IEJouni Malinen2014-03-291-0/+4
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Connection during large packet lossJouni Malinen2014-03-291-0/+16
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: SAE anti-clogging with non-SAE STA associated as wellJouni Malinen2014-03-291-1/+2
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: OLBC state clearing on timeoutJouni Malinen2014-03-291-1/+16
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: HT OLBC detection on 5 GHzJouni Malinen2014-03-291-0/+27
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Chargeable-User-Idnetity in Accounting-RequestJouni Malinen2014-03-291-1/+5
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Add initial cfg80211 testJouni Malinen2014-03-292-0/+387
| | | | | | | | | This adds some helper definitions and functions to allow cfg80211 to be tested with raw nl80211 messages built in the test scripts. The first test case shows a case where station disassociates instead of deauthenticates (which is the wpa_supplicant behavior). Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Require HT/VHT as BSS membership selector in Supp RatesJouni Malinen2014-03-292-0/+17
| | | | | | | | These are similar to the previous cases, but with supported rate set limited to allow the BSS membership selector to fit into that element instead of Ext Supp Rates. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: hostapd configuration file error casesJouni Malinen2014-03-291-0/+80
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: PSK file error casesJouni Malinen2014-03-292-1/+67
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* Clean up debug print for PSK file searchJouni Malinen2014-03-291-3/+2
| | | | | | | | p2p_dev_addr was not NULL, so the all zeros case was printed as well. Clean this up by printing p2p_dev_addr in debug prints only if it is a real P2P Device Address. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: ACS for 40 MHz channels, on 5 GHz, and for VHTJouni Malinen2014-03-291-6/+119
| | | | | | | | The 5 GHz cases are not yet complete due to missing mac80211_hwsim functionality. The current test cases allow the ACS operation to fail for those cases. Signed-off-by: Jouni Malinen <j@w1.fi>
* DFS: Print CAC info in ctrl_iface STATUS commandJanusz Dziedzic2014-03-286-3/+66
| | | | | | Print CAC time and CAC left time in control interface STATUS command. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Verify PBC overlap detection during P2P group formationJouni Malinen2014-03-281-0/+57
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* P2P: Fix segfault when PBC overlap is detectedAvraham Stern2014-03-284-11/+14
| | | | | | | | | | If a separate P2P group interface is used, PBC overlap during group formation causes the group interface to be removed, which ends up with the interface context becoming invalid. Fix this by scheduling a timeout to process the PBC overlap and interface removal instead of removing the interface directly before the connection operation has returned. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* Add writing of network block ocsp parameterJouni Malinen2014-03-281-0/+1
| | | | | | | | This was forgotten from the per-network ocsp parameter addition. The new parameter needs to be stored to the configuration file similarly to the other EAP parameters. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* nl80211: Set all BSS interfaces down when tearing down AP in MBSS modeMaxime Bizon2014-03-271-0/+2
| | | | | | | If the interface was not added by hostapd, it could have been left up when disabling the AP. Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
* wpa_supplicant: Remove pending sme-connect radio workIlan Peer2014-03-271-2/+8
| | | | | | | | | | If a new connection is attempted while there is a pending sme-connection radio work, cancel the pending radio work and continue with the new connection attempt. This is preferable over rejecting the new work and continuing with the pending one, as it is possible that the previous work is no longer valid. Signed-off-by: Ilan Peer <ilan.peer@intel.com>