Home | History | Annotate | Download | only in drivers

Lines Matching refs:nlmode

226 int is_ap_interface(enum nl80211_iftype nlmode)
228 return nlmode == NL80211_IFTYPE_AP ||
229 nlmode == NL80211_IFTYPE_P2P_GO;
233 int is_sta_interface(enum nl80211_iftype nlmode)
235 return nlmode == NL80211_IFTYPE_STATION ||
236 nlmode == NL80211_IFTYPE_P2P_CLIENT;
240 static int is_p2p_net_interface(enum nl80211_iftype nlmode)
242 return nlmode == NL80211_IFTYPE_P2P_CLIENT ||
243 nlmode == NL80211_IFTYPE_P2P_GO;
261 static int is_mesh_interface(enum nl80211_iftype nlmode)
263 return nlmode == NL80211_IFTYPE_MESH_POINT;
514 enum nl80211_iftype nlmode;
532 info->nlmode = nla_get_u32(tb[NL80211_ATTR_IFTYPE]);
563 .nlmode = NL80211_IFTYPE_UNSPECIFIED,
571 return data.nlmode;
1189 unsigned int freq = drv->nlmode == NL80211_IFTYPE_ADHOC ?
1552 if (drv->nlmode == NL80211_IFTYPE_P2P_DEVICE)
1567 if (is_p2p_net_interface(drv->nlmode))
1574 if (drv->nlmode == NL80211_IFTYPE_P2P_DEVICE)
1681 if (drv->nlmode == NL80211_IFTYPE_P2P_DEVICE) {
1891 if (drv->nlmode == NL80211_IFTYPE_ADHOC) {
2216 enum nl80211_iftype nlmode;
2218 nlmode = nl80211_get_ifmode(bss);
2219 if (nlmode != NL80211_IFTYPE_P2P_DEVICE) {
2290 enum nl80211_iftype nlmode;
2328 nlmode = NL80211_IFTYPE_AP;
2330 nlmode = nl80211_get_ifmode(bss);
2332 nlmode = NL80211_IFTYPE_STATION;
2334 if (wpa_driver_nl80211_set_mode(bss, nlmode) < 0) {
2339 if (nlmode == NL80211_IFTYPE_P2P_DEVICE)
2352 if (is_p2p_net_interface(nlmode))
2356 if (nlmode == NL80211_IFTYPE_P2P_DEVICE)
2361 if (nlmode != NL80211_IFTYPE_P2P_DEVICE)
2367 if (!drv->hostapd && nlmode != NL80211_IFTYPE_P2P_DEVICE)
2371 if (nlmode != NL80211_IFTYPE_P2P_DEVICE) {
2446 if (is_ap_interface(drv->nlmode))
2486 if (drv->nlmode != NL80211_IFTYPE_P2P_DEVICE) {
2647 if (drv->nlmode == NL80211_IFTYPE_P2P_DEVICE)
2734 if (is_ap_interface(drv->nlmode) && addr &&
2922 if (drv->nlmode == NL80211_IFTYPE_ADHOC) {
2992 if (is_p2p_net_interface(drv->nlmode) || !drv->disabled_11b_rates)
3014 enum nl80211_iftype nlmode;
3031 nlmode = params->p2p ?
3033 if (drv->nlmode != nlmode &&
3034 wpa_driver_nl80211_set_mode(bss, nlmode) < 0)
3236 if (freq == 0 && drv->nlmode == NL80211_IFTYPE_ADHOC) {
3295 " noack=%d freq=%u no_cck=%d offchanok=%d wait_time=%u fc=0x%x (%s) nlmode=%d",
3297 fc, fc2str(fc), drv->nlmode);
3299 if ((is_sta_interface(drv->nlmode) ||
3300 drv->nlmode == NL80211_IFTYPE_P2P_DEVICE) &&
3318 if (drv->device_ap_sme && is_ap_interface(drv->nlmode)) {
4004 if (!is_mesh_interface(drv->nlmode)) {
4523 enum nl80211_iftype nlmode, old_mode;
4528 nlmode = NL80211_IFTYPE_P2P_GO;
4530 nlmode = NL80211_IFTYPE_AP;
4532 old_mode = drv->nlmode;
4533 if (wpa_driver_nl80211_set_mode(drv->first_bss, nlmode)) {
4540 if (old_mode != nlmode)
5028 enum nl80211_iftype nlmode = params->p2p ?
5031 if (wpa_driver_nl80211_set_mode(priv, nlmode) < 0)
5093 enum nl80211_iftype nlmode,
5099 int was_ap = is_ap_interface(drv->nlmode);
5103 mode_switch_res = nl80211_set_mode(drv, drv->ifindex, nlmode);
5104 if (mode_switch_res && nlmode == nl80211_get_ifmode(bss))
5108 drv->nlmode = nlmode;
5116 if (nlmode == drv->nlmode) {
5153 mode_switch_res = nl80211_set_mode(drv, drv->ifindex, nlmode);
5167 drv->nlmode = nlmode;
5182 "from %d failed", nlmode, drv->nlmode);
5186 if (is_p2p_net_interface(nlmode)) {
5198 if (is_ap_interface(nlmode)) {
5210 if (is_mesh_interface(nlmode) &&
5214 if (!bss->in_deinit && !is_ap_interface(nlmode) &&
5215 !is_mesh_interface(nlmode) &&
5225 enum nl80211_iftype nlmode)
5227 return wpa_driver_nl80211_set_mode_impl(bss, nlmode, NULL);
5655 if (is_mesh_interface(drv->nlmode))
5682 if (is_mesh_interface(drv->nlmode))
6162 enum nl80211_iftype nlmode;
6170 nlmode = wpa_driver_nl80211_if_type(type);
6171 if (nlmode == NL80211_IFTYPE_P2P_DEVICE) {
6175 ifidx = nl80211_create_iface(drv, ifname, nlmode, addr,
6192 ifidx = nl80211_create_iface(drv, ifname, nlmode, addr,
6203 if (nlmode == NL80211_IFTYPE_P2P_DEVICE)
6297 nlmode == NL80211_IFTYPE_AP_VLAN ||
6298 nlmode == NL80211_IFTYPE_WDS ||
6299 nlmode == NL80211_IFTYPE_MONITOR))
6491 if (is_ap_interface(drv->nlmode) &&
6626 is_ap_interface(drv->nlmode) && !bss->in_deinit &&
6727 if (!is_ap_interface(drv->nlmode))
6736 if (drv->nlmode == NL80211_IFTYPE_P2P_GO && bss->if_dynamic)
6747 if (!is_ap_interface(drv->nlmode))
6759 if (drv->nlmode != NL80211_IFTYPE_P2P_CLIENT)
6776 enum nl80211_iftype nlmode = nl80211_get_ifmode(bss);
6781 if (is_p2p_net_interface(nlmode))
6856 if (drv->nlmode != NL80211_IFTYPE_ADHOC &&
6857 drv->nlmode != NL80211_IFTYPE_MESH_POINT)
7691 if (drv->nlmode != NL80211_IFTYPE_P2P_DEVICE)
7923 if ((drv->nlmode != NL80211_IFTYPE_AP) &&
7924 (drv->nlmode != NL80211_IFTYPE_P2P_GO))
8038 if (!is_sta_interface(drv->nlmode))
8068 if (!is_sta_interface(drv->nlmode))