nl80211: Rename is_p2p_interface
Rename is_p2p_interface() to is_p2p_net_interface() since it used to identify network P2P interfaces to disable 802.11b rates on them. Signed-off-by: David Spinadel <david.spinadel@intel.com>
This commit is contained in:
parent
8393e1a024
commit
6a71413ef2
1 changed files with 3 additions and 3 deletions
|
@ -470,7 +470,7 @@ static int is_sta_interface(enum nl80211_iftype nlmode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int is_p2p_interface(enum nl80211_iftype nlmode)
|
static int is_p2p_net_interface(enum nl80211_iftype nlmode)
|
||||||
{
|
{
|
||||||
return (nlmode == NL80211_IFTYPE_P2P_CLIENT ||
|
return (nlmode == NL80211_IFTYPE_P2P_CLIENT ||
|
||||||
nlmode == NL80211_IFTYPE_P2P_GO);
|
nlmode == NL80211_IFTYPE_P2P_GO);
|
||||||
|
@ -6602,7 +6602,7 @@ static int nl80211_create_iface(struct wpa_driver_nl80211_data *drv,
|
||||||
wds);
|
wds);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret >= 0 && is_p2p_interface(iftype))
|
if (ret >= 0 && is_p2p_net_interface(iftype))
|
||||||
nl80211_disable_11b_rates(drv, ret, 1);
|
nl80211_disable_11b_rates(drv, ret, 1);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -7883,7 +7883,7 @@ done:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_p2p_interface(nlmode))
|
if (is_p2p_net_interface(nlmode))
|
||||||
nl80211_disable_11b_rates(drv, drv->ifindex, 1);
|
nl80211_disable_11b_rates(drv, drv->ifindex, 1);
|
||||||
else if (drv->disabled_11b_rates)
|
else if (drv->disabled_11b_rates)
|
||||||
nl80211_disable_11b_rates(drv, drv->ifindex, 0);
|
nl80211_disable_11b_rates(drv, drv->ifindex, 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue