Patchwork nl80211: Start P2P Device when Rfkill is unblocked

login
register
mail settings
Submitter Ilan Peer
Date Aug. 7, 2013, 10:08 a.m.
Message ID <1375870125-27991-3-git-send-email-ilan.peer@intel.com>
Download mbox | patch
Permalink /patch/265471/
State Accepted
Commit bf83eab553440e36431a8d835cf23aa7e1395725
Headers show

Comments

Ilan Peer - Aug. 7, 2013, 10:08 a.m.
Signed-hostap: Ilan Peer <ilan.peer@intel.com>
---
 src/drivers/driver_nl80211.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Jouni Malinen - Aug. 25, 2013, 7:44 a.m.
Thanks, applied.

Patch

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 5737338..f92a5fb 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -353,6 +353,7 @@  static int nl80211_leave_ibss(struct wpa_driver_nl80211_data *drv);
 static int wpa_driver_nl80211_authenticate_retry(
 	struct wpa_driver_nl80211_data *drv);
 
+static int i802_set_iface_flags(struct i802_bss *bss, int up);
 
 static const char * nl80211_command_to_string(enum nl80211_commands cmd)
 {
@@ -3492,8 +3493,7 @@  static void wpa_driver_nl80211_rfkill_unblocked(void *ctx)
 {
 	struct wpa_driver_nl80211_data *drv = ctx;
 	wpa_printf(MSG_DEBUG, "nl80211: RFKILL unblocked");
-	if (linux_set_iface_flags(drv->global->ioctl_sock,
-				  drv->first_bss.ifname, 1)) {
+	if (i802_set_iface_flags(&drv->first_bss, 1)) {
 		wpa_printf(MSG_DEBUG, "nl80211: Could not set interface UP "
 			   "after rfkill unblock");
 		return;