Author: weongyo
Date: Sat Feb 27 23:42:32 2010
New Revision: 204437
URL: http://svn.freebsd.org/changeset/base/204437

Log:
  fixes a bug to load firmware images for LP PHY.  For LP PHY always,
  `lp_' string is contained in its full image names.

Modified:
  head/sys/dev/bwn/if_bwn.c

Modified: head/sys/dev/bwn/if_bwn.c
==============================================================================
--- head/sys/dev/bwn/if_bwn.c   Sat Feb 27 23:04:29 2010        (r204436)
+++ head/sys/dev/bwn/if_bwn.c   Sat Feb 27 23:42:32 2010        (r204437)
@@ -7789,8 +7789,9 @@ bwn_fw_get(struct bwn_mac *mac, enum bwn
                bwn_do_release_fw(bfw);
        }
 
-       snprintf(namebuf, sizeof(namebuf), "bwn%s_v4_%s",
-           (type == BWN_FWTYPE_OPENSOURCE) ? "-open" : "", name);
+       snprintf(namebuf, sizeof(namebuf), "bwn%s_v4_%s%s",
+           (type == BWN_FWTYPE_OPENSOURCE) ? "-open" : "",
+           (mac->mac_phy.type == BWN_PHYTYPE_LP) ? "lp_" : "", name);
        /* XXX Sleeping on "fwload" with the non-sleepable locks held */
        fw = firmware_get(namebuf);
        if (fw == NULL) {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to