Lines Matching defs:nlmode
230 enum nl80211_iftype nlmode;
290 enum nl80211_iftype nlmode);
352 static int is_ap_interface(enum nl80211_iftype nlmode)
354 return (nlmode == NL80211_IFTYPE_AP ||
355 nlmode == NL80211_IFTYPE_P2P_GO);
359 static int is_sta_interface(enum nl80211_iftype nlmode)
361 return (nlmode == NL80211_IFTYPE_STATION ||
362 nlmode == NL80211_IFTYPE_P2P_CLIENT);
366 static int is_p2p_interface(enum nl80211_iftype nlmode)
368 return (nlmode == NL80211_IFTYPE_P2P_CLIENT ||
369 nlmode == NL80211_IFTYPE_P2P_GO);
1324 if (!is_ap_interface(drv->nlmode)) {
1946 if (is_ap_interface(drv->nlmode) && drv->device_ap_sme) {
1958 if (drv->nlmode != NL80211_IFTYPE_ADHOC)
1979 if (is_ap_interface(drv->nlmode) && drv->device_ap_sme) {
1984 if (drv->nlmode != NL80211_IFTYPE_ADHOC)
3434 if (is_ap_interface(drv->nlmode))
3629 if (is_ap_interface(drv->nlmode)) {
3639 wpa_driver_nl80211_set_mode(bss, drv->nlmode);
3644 drv->ap_scan_as_station = drv->nlmode;
4056 if (is_sta_interface(drv->nlmode) &&
4074 if (is_sta_interface(drv->nlmode) &&
4080 } else if (is_sta_interface(drv->nlmode) &&
4280 if (is_ap_interface(drv->nlmode) && addr &&
4508 if (drv->nlmode == NL80211_IFTYPE_ADHOC)
4583 enum nl80211_iftype nlmode;
4593 nlmode = params->p2p ?
4595 if (drv->nlmode != nlmode &&
4596 wpa_driver_nl80211_set_mode(priv, nlmode) < 0)
5317 if (is_sta_interface(drv->nlmode) &&
5332 if (drv->device_ap_sme && is_ap_interface(drv->nlmode)) {
6516 enum nl80211_iftype nlmode;
6521 nlmode = NL80211_IFTYPE_P2P_GO;
6523 nlmode = NL80211_IFTYPE_AP;
6525 if (wpa_driver_nl80211_set_mode(&drv->first_bss, nlmode) ||
6905 enum nl80211_iftype nlmode = params->p2p ?
6908 if (wpa_driver_nl80211_set_mode(priv, nlmode) < 0)
7082 enum nl80211_iftype nlmode)
7087 int was_ap = is_ap_interface(drv->nlmode);
7090 res = nl80211_set_mode(drv, drv->ifindex, nlmode);
7092 drv->nlmode = nlmode;
7100 if (nlmode == drv->nlmode) {
7121 ret = nl80211_set_mode(drv, drv->ifindex, nlmode);
7139 drv->nlmode = nlmode;
7146 "from %d failed", nlmode, drv->nlmode);
7150 if (is_p2p_interface(nlmode))
7155 if (is_ap_interface(nlmode)) {
7167 if (!bss->in_deinit && !is_ap_interface(nlmode) &&
7833 drv->nlmode = NL80211_IFTYPE_AP;
7872 if (wpa_driver_nl80211_set_mode(bss, drv->nlmode)) {
8243 if (is_ap_interface(drv->nlmode))
8370 is_ap_interface(drv->nlmode)) {
8472 if (!is_ap_interface(drv->nlmode))
8483 if (drv->nlmode != NL80211_IFTYPE_P2P_CLIENT)
8618 (!driver->associated && !is_ap_interface(driver->nlmode)))
8628 if (is_ap_interface(driver->nlmode))