Lines Matching defs:nlmode
232 enum nl80211_iftype nlmode;
294 enum nl80211_iftype nlmode);
358 static int is_ap_interface(enum nl80211_iftype nlmode)
360 return (nlmode == NL80211_IFTYPE_AP ||
361 nlmode == NL80211_IFTYPE_P2P_GO);
365 static int is_sta_interface(enum nl80211_iftype nlmode)
367 return (nlmode == NL80211_IFTYPE_STATION ||
368 nlmode == NL80211_IFTYPE_P2P_CLIENT);
372 static int is_p2p_interface(enum nl80211_iftype nlmode)
374 return (nlmode == NL80211_IFTYPE_P2P_CLIENT ||
375 nlmode == NL80211_IFTYPE_P2P_GO);
1355 if (!is_ap_interface(drv->nlmode)) {
2015 if (is_ap_interface(drv->nlmode) && drv->device_ap_sme) {
2027 if (drv->nlmode != NL80211_IFTYPE_ADHOC)
2048 if (is_ap_interface(drv->nlmode) && drv->device_ap_sme) {
2053 if (drv->nlmode != NL80211_IFTYPE_ADHOC)
3738 if (is_ap_interface(drv->nlmode))
3935 if (is_ap_interface(drv->nlmode)) {
3945 wpa_driver_nl80211_set_mode(bss, drv->nlmode);
3950 drv->ap_scan_as_station = drv->nlmode;
4364 if (is_sta_interface(drv->nlmode) &&
4382 if (is_sta_interface(drv->nlmode) &&
4388 } else if (is_sta_interface(drv->nlmode) &&
4595 if (is_ap_interface(drv->nlmode) && addr &&
4824 if (drv->nlmode == NL80211_IFTYPE_ADHOC)
4884 enum nl80211_iftype nlmode;
4894 nlmode = params->p2p ?
4896 if (drv->nlmode != nlmode &&
4897 wpa_driver_nl80211_set_mode(bss, nlmode) < 0)
5719 if (is_sta_interface(drv->nlmode) &&
5734 if (drv->device_ap_sme && is_ap_interface(drv->nlmode)) {
7001 enum nl80211_iftype nlmode, old_mode;
7009 nlmode = NL80211_IFTYPE_P2P_GO;
7011 nlmode = NL80211_IFTYPE_AP;
7013 old_mode = drv->nlmode;
7014 if (wpa_driver_nl80211_set_mode(&drv->first_bss, nlmode)) {
7020 if (old_mode != nlmode)
7405 enum nl80211_iftype nlmode = params->p2p ?
7408 if (wpa_driver_nl80211_set_mode(priv, nlmode) < 0)
7596 enum nl80211_iftype nlmode)
7601 int was_ap = is_ap_interface(drv->nlmode);
7604 res = nl80211_set_mode(drv, drv->ifindex, nlmode);
7606 drv->nlmode = nlmode;
7614 if (nlmode == drv->nlmode) {
7635 ret = nl80211_set_mode(drv, drv->ifindex, nlmode);
7653 drv->nlmode = nlmode;
7660 "from %d failed", nlmode, drv->nlmode);
7664 if (is_p2p_interface(nlmode))
7669 if (is_ap_interface(nlmode)) {
7681 if (!bss->in_deinit && !is_ap_interface(nlmode) &&
8352 drv->nlmode = NL80211_IFTYPE_AP;
8391 if (wpa_driver_nl80211_set_mode(bss, drv->nlmode)) {
8763 if (is_ap_interface(drv->nlmode))
8890 is_ap_interface(drv->nlmode)) {
8992 if (!is_ap_interface(drv->nlmode))
9003 if (drv->nlmode != NL80211_IFTYPE_P2P_CLIENT)
9138 (!driver->associated && !is_ap_interface(driver->nlmode)))
9148 if (is_ap_interface(driver->nlmode))