]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Start P2P Device when rfkill is unblocked
authorIlan Peer <ilan.peer@intel.com>
Sun, 25 Aug 2013 07:43:32 +0000 (10:43 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 25 Aug 2013 07:43:52 +0000 (10:43 +0300)
Signed-hostap: Ilan Peer <ilan.peer@intel.com>

src/drivers/driver_nl80211.c

index e1ff29573b4c9db023d9e64e30e9fc7dafd32072..2dd548a25e4e36f67eef5300091c5cb08f45537e 100644 (file)
@@ -353,6 +353,8 @@ 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)
 {
@@ -3494,8 +3496,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;