Laurent Bercot | 30 Jun 11:56 2016

bug: l2_packet_privsep does not honor the priv_dir driver parameter


  Hello,

  I'm trying to run wpa_supplicant in privilege separation mode.
  I run "wpa_priv -c /myprivdir -- nl80211:wlan0".
  Then I run "wpa_supplicant -D privsep -p priv_dir=/myprivdir -i wlan0".

  Everything is starting fine, but L2 fails. Debug messages say:

wpa_driver_privsep_set_param: param='priv_dir=/myprivdir'
Add interface wlan0 to a new radio N/A
wpa_driver_privsep_get_mac_addr
L2: sendmsg(cmd): No such file or directory
L2: Failed to register with wpa_priv

  A strace shows that the L2 sendmsg is sent to /var/run/wpa_priv/wlan0
instead of /myprivdir/wlan0. And indeed, in src/l2_packet/l2_packet_privsep.c,
in the l2_packet_init function, I can see that priv_dir is by default
hardcoded to "/var/run/wpa_priv" (which is normal), but there is no reading
of driver_param to replace the default with the user-provided priv_dir value.

  I did not provide a patch because I've just started looking at the code
and I'm unsure of the correct way to fix this, so I figured a simple
bug-report would do.

  Thanks,

--

-- 
  Laurent
(Continue reading)

Masashi Honma | 30 Jun 11:03 2016
Picon

[PATCH] mesh: Report mesh peer AID to kernel

Previously, mesh peer AID is not reported to kernel when local mesh
STA is created without iw command. The mesh peer AID is needed by mesh
peer power management functionality to identify a AID in a TIM
element.

This patch reports mesh peer AID to kernel.

Signed-off-by: Masashi Honma <masashi.honma <at> gmail.com>
---
 src/ap/sta_info.h            | 1 +
 src/drivers/driver.h         | 1 +
 src/drivers/driver_nl80211.c | 7 +++++++
 src/drivers/nl80211_copy.h   | 5 +++++
 wpa_supplicant/mesh_mpm.c    | 9 +++++++--
 5 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/src/ap/sta_info.h b/src/ap/sta_info.h
index 5d4d0c8..8b2a550 100644
--- a/src/ap/sta_info.h
+++ b/src/ap/sta_info.h
 <at>  <at>  -80,6 +80,7  <at>  <at>  struct sta_info {
 	enum mesh_plink_state plink_state;
 	u16 peer_lid;
 	u16 my_lid;
+	u16 mesh_aid;
 	u16 mpm_close_reason;
 	int mpm_retries;
 	u8 my_nonce[WPA_NONCE_LEN];
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index edb6978..a08857c 100644
(Continue reading)

Roshan Pius | 30 Jun 01:55 2016
Picon

[PATCH] Dont exceed scan ssid max size advertised by driver

Currently |wpa_set_scan_ssids| fully exhausts
|wpa_driver_scan_params.ssid| list when hidden network ID's
are provided via the control interface. This results in us
exceeding the max size for the list advertised by the driver when we add
the "wildcard" scan ssid entry. So, ensure that we leave space for one
more scan ssid entry in the list when we exit out of |wpa_set_scan_ssids|.

Signed-off-by: Roshan Pius <rpius <at> google.com>
---
 wpa_supplicant/scan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
index 7a52826..8a29522 100644
--- a/wpa_supplicant/scan.c
+++ b/wpa_supplicant/scan.c
 <at>  <at>  -593,7 +593,7  <at>  <at>  static void wpa_set_scan_ssids(struct wpa_supplicant *wpa_s,
 		if (j < params->num_ssids)
 			continue; /* already in the list */

-		if (params->num_ssids + 1 > max_ssids) {
+		if (params->num_ssids + 1 >= max_ssids) {
 			wpa_printf(MSG_DEBUG,
 				   "Over max scan SSIDs for manual request");
 			break;
--

-- 
2.8.0.rc3.226.g39d4020
Raghavendra M S | 29 Jun 19:17 2016
Picon

Disabling a SSID for at least 'x' seconds.

Hi,

Inside WPA_Supplicant, the variable ssid->disabled_sec value makes a
ssid to be disabled for time equivalent to disabled_sec.  However,
though a value 'x' has been set to variable 'disabled_sec', because of
a scan request, WPA_supplicant tries to associate with the disabled
SSID even before 'x' seconds.

Is there any way to make a SSID to be disabled for at least 'x'
seconds and not be tried (in spite of scan requests) before the time.

Thanks.
Dmitry Shmidt | 28 Jun 00:58 2016
Picon

[PATCH] nl80211: Keep QCA vendor extensions together

To: hostap <at> lists.infradead.org

Signed-off-by: Dmitry Shmidt <dimitrysh <at> google.com>
---
 src/drivers/driver_nl80211.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index c89665b..d1c28aa 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
 <at>  <at>  -9338,9 +9338,6  <at>  <at>  const struct wpa_driver_ops wpa_driver_nl80211_ops = {
        .vendor_cmd = nl80211_vendor_cmd,
        .set_qos_map = nl80211_set_qos_map,
        .set_wowlan = nl80211_set_wowlan,
-#ifdef CONFIG_DRIVER_NL80211_QCA
-       .roaming = nl80211_roaming,
-#endif /* CONFIG_DRIVER_NL80211_QCA */
        .set_mac_addr = nl80211_set_mac_addr,
 #ifdef CONFIG_MESH
        .init_mesh = wpa_driver_nl80211_init_mesh,
 <at>  <at>  -9355,6 +9352,7  <at>  <at>  const struct wpa_driver_ops wpa_driver_nl80211_ops = {
        .del_tx_ts = nl80211_del_ts,
        .get_ifindex = nl80211_get_ifindex,
 #ifdef CONFIG_DRIVER_NL80211_QCA
+       .roaming = nl80211_roaming,
        .do_acs = wpa_driver_do_acs,
        .set_band = nl80211_set_band,
        .get_pref_freq_list = nl80211_get_pref_freq_list,
--

-- 
(Continue reading)

Avichal Agarwal | 27 Jun 14:17 2016

[PATCH] disconnected notification to dbus on intreface up


From d05b55b745eb8c8a01c798f9e649983b9f6da0a1 Mon Sep 17 00:00:00 2001
From: Avichal Agarwal <avichal.a <at> samsung.com>
Date: Mon, 27 Jun 2016 17:16:31 +0530
Subject: [PATCH] disconnected notification to dbus on intreface up

This patch will send  (disconnected) state changed signal to dbus on
disable and enable the  interface.Before this patch the interface state
received by dbus was inactive , which should be disconnected.
commands:ifconfig (interface ) down/up

Signed-off-by: Avichal Agarwal <avichal.a <at> samsung.com>
---
 wpa_supplicant/dbus/dbus_new.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/wpa_supplicant/dbus/dbus_new.c b/wpa_supplicant/dbus/dbus_new.c
index 0263b2c..e3a9fd8 100644
--- a/wpa_supplicant/dbus/dbus_new.c
+++ b/wpa_supplicant/dbus/dbus_new.c
 <at>  <at>  -1982,6 +1982,7  <at>  <at>  void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s,
 		break;
 	case WPAS_DBUS_PROP_STATE:
 		prop = "State";
+		flush = TRUE;
 		break;
 	case WPAS_DBUS_PROP_CURRENT_BSS:
 		prop = "CurrentBSS";
--

-- 
1.7.9.5
(Continue reading)

Vojkan Zivkovic | 23 Jun 17:21 2016

Re: Re: hostap + ppp dialup question

Thank you -I will try it and will post back my findings. 

Vojkan 
Jonathan Afek | 23 Jun 19:16 2016

[PATCH 1/8] tests: tests start using general cmd_execute() func

The hwsim tests used to execute shell commands in the tests
using the subprocess python module.
Start using the cmd_execute() general function for executing
shell commands so that this would also work on remote setups.

Signed-off-by: Jonathan Afek <jonathanx.afek <at> intel.com>
---
 tests/hwsim/hwsim_utils.py      |  1 -
 tests/hwsim/test_ap_acs.py      |  7 ++--
 tests/hwsim/test_ap_ft.py       |  1 -
 tests/hwsim/test_ap_hs20.py     |  1 -
 tests/hwsim/test_ap_open.py     | 12 +++---
 tests/hwsim/test_ap_params.py   | 19 +++++-----
 tests/hwsim/test_ap_pmf.py      | 11 ++----
 tests/hwsim/test_ap_psk.py      | 81 +++++++++++++++++++----------------------
 tests/hwsim/test_ap_qosmap.py   |  1 -
 tests/hwsim/test_ap_roam.py     |  1 -
 tests/hwsim/test_cfg80211.py    |  1 -
 tests/hwsim/test_nfc_p2p.py     |  1 -
 tests/hwsim/test_p2p_autogo.py  | 23 +++++-------
 tests/hwsim/test_pmksa_cache.py | 20 +++++-----
 tests/hwsim/test_radio_work.py  |  1 -
 tests/hwsim/test_sae.py         |  1 -
 tests/hwsim/test_scan.py        | 23 +++++-------
 tests/hwsim/test_wpas_ctrl.py   |  8 ++--
 18 files changed, 94 insertions(+), 119 deletions(-)

diff --git a/tests/hwsim/hwsim_utils.py b/tests/hwsim/hwsim_utils.py
index fd5f70c..cba9271 100644
--- a/tests/hwsim/hwsim_utils.py
(Continue reading)

Aniss Maghsoudlou | 23 Jun 18:41 2016
Picon

couldn't connect to hostapd - re-trying

Hi,
I'm new to hostapd and now I'm trying to run hostapd_cli which after 2
days of tracing the error, now I know that its problem is in
wpa_ctrl_open2 when it's going to connect the socket. connect return
-1 and sets the errno to 111 which is apparently connection refused.

to reach where I'm now, I have made a directory named hostapd in
var/run and made an empty file name aniss.tmp and now running the cli
using this command: sudo ./hostapd_cli -s /var/run/hostapd. before
doing these, I had some other errors.
Btw, it's still showing me the error:

couldn't connect to hostapd - re-trying

Is there anything I should do before just running the hostapd_cli?
Bob | 23 Jun 17:10 2016
Picon

hostpad failed when station active

Hello list,

I am trying to enable software AP in linux along with wifi station. The 
compiled 4.4.13 kernel already provides the required drivers

~~~
#lsmod | grep 80211

mac80211    630784  1 ath9k
cfg80211      548864  4 ath,ath9k_common,ath9k,mac80211
~~~

No issue to start the AP alone with the minimal hostapd configuration

~~~
interface=sw_ap
driver=nl80211
ssid=test
channel=6
wmm_enabled=1
hw_mode=g
~~~

but failed when virtual station is already up. Then hostapd gives 
following errors

~~~
nl80211: send_mlme - da= ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 
offchanok=0 wait_time=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
nl80211: send_mlme -> send_frame
(Continue reading)

Aniss Maghsoudlou | 23 Jun 13:47 2016
Picon

couldn't connect to hostapd - re-trying

Hi,
I'm new to hostapd and now I'm trying to run hostapd_cli which after 2
days of tracing the error, now I know that its problem is in
wpa_ctrl_open2 when it's going to connect the socket. connect return
-1 and sets the errno to 111 which is apparently connection refused.

to reach where I'm now, I have made a directory named hostapd in
var/run and made an empty file name aniss.tmp and now running the cli
using this command: sudo ./hostapd_cli -s /var/run/hostapd. before
doing these, I had some other errors.
Btw, it's still showing me the error:

couldn't connect to hostapd - re-trying

Is there anything I should do before just running the hostapd_cli?

--

-- 
Aniss Maghsoudlou, M.Sc. Student,
Computer Networks, Wireless Networks Laboratory, Room 808,
Computer Engineering Department, Sharif University of Technology, Tehran, Iran.

Gmane