Patchwork [v2,04/10] nl80211_driver: rename is_p2p_interface

login
register
mail settings
Submitter dvdspndl@gmail.com
Date March 17, 2013, 8:57 p.m.
Message ID <1363553840-7844-5-git-send-email-dvdspndl@gmail.com>
Download mbox | patch
Permalink /patch/228323/
State Changes Requested
Headers show

Comments

dvdspndl@gmail.com - March 17, 2013, 8:57 p.m.
From: David Spinadel <david.spinadel@intel.com>

Rename is_p2p_interaface() to is_p2p_net_interface() since it used to identify
network P2P interfaces to disable 11b rates on them.

Signed-off-by: David Spinadel <david.spinadel@intel.com>
---
 src/drivers/driver_nl80211.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index cf15603..d37ab7f 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -361,7 +361,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 ||
 		nlmode == NL80211_IFTYPE_P2P_GO);
@@ -6274,7 +6274,7 @@  static int nl80211_create_iface(struct wpa_driver_nl80211_data *drv,
 						wds);
 	}
 
-	if (ret >= 0 && is_p2p_interface(iftype))
+	if (ret >= 0 && is_p2p_net_interface(iftype))
 		nl80211_disable_11b_rates(drv, ret, 1);
 
 	return ret;
@@ -7561,7 +7561,7 @@  done:
 		return ret;
 	}
 
-	if (is_p2p_interface(nlmode))
+	if (is_p2p_net_interface(nlmode))
 		nl80211_disable_11b_rates(drv, drv->ifindex, 1);
 	else if (drv->disabled_11b_rates)
 		nl80211_disable_11b_rates(drv, drv->ifindex, 0);