Date: Wed, 8 Jul 2009 16:09:39 +0000 (UTC) From: Rui Paulo <rpaulo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r195465 - projects/mesh11s/sys/net80211 Message-ID: <200907081609.n68G9d7x056259@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907081609.n68G9d7x056259>