nl80211: Don't call linux_iface_up() for a dedicated P2P Device
authorIlan Peer <ilan.peer@intel.com>
Sun, 27 Dec 2015 12:36:11 +0000 (14:36 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 28 Dec 2015 15:21:08 +0000 (17:21 +0200)
commitef3866ab016e8ff58c2adbfb1ec673a7f7e1dfd8
treed01a90fd5cf77911a287cc5a80067eb6c35c95ac
parentc2ed779748cc4bb2d544f50fd4096ba4838bbeca
nl80211: Don't call linux_iface_up() for a dedicated P2P Device

As a dedicated P2P Device interface does not have a network
interface associated with it, trying to call linux_iface_up()
on it would always fail so this call can be skipped for
such an interface.

Getting interface nlmode can be done only after bss->wdev_id is
set, so move this call to wpa_driver_nl80211_finish_drv_init(),
and do it only in case the nlmode != NL80211_IFTYPE_P2P_DEVICE.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
src/drivers/driver_nl80211.c