svn commit: r195465 - projects/mesh11s/sys/net80211

Rui Paulo rpaulo at FreeBSD.org
Wed Jul 8 16:09:39 UTC 2009


Author: rpaulo
Date: Wed Jul  8 16:09:39 2009
New Revision: 195465
URL: http://svn.freebsd.org/changeset/base/195465

Log:
  Use insensitive casing when comparing protocol names.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  projects/mesh11s/sys/net80211/ieee80211_mesh.c

Modified: projects/mesh11s/sys/net80211/ieee80211_mesh.c
==============================================================================
--- projects/mesh11s/sys/net80211/ieee80211_mesh.c	Wed Jul  8 16:08:44 2009	(r195464)
+++ projects/mesh11s/sys/net80211/ieee80211_mesh.c	Wed Jul  8 16:09:39 2009	(r195465)
@@ -257,7 +257,7 @@ mesh_select_proto_path(struct ieee80211v
 	int i;
 
 	for (i = 0; i < N(mesh_proto_paths); i++) {
-		if (strcmp(mesh_proto_paths[i].mpp_descr, name) == 0) {
+		if (strcasecmp(mesh_proto_paths[i].mpp_descr, name) == 0) {
 			ms->ms_ppath = &mesh_proto_paths[i];
 			if (vap->iv_state == IEEE80211_S_RUN)
 				vap->iv_newstate(vap, IEEE80211_S_INIT, 0);
@@ -274,7 +274,7 @@ mesh_select_proto_metric(struct ieee8021
 	int i;
 
 	for (i = 0; i < N(mesh_proto_metrics); i++) {
-		if (strcmp(mesh_proto_metrics[i].mpm_descr, name) == 0) {
+		if (strcasecmp(mesh_proto_metrics[i].mpm_descr, name) == 0) {
 			ms->ms_pmetric = &mesh_proto_metrics[i];
 			return 0;
 		}


More information about the svn-src-projects mailing list