From owner-svn-src-all@FreeBSD.ORG Sat Feb 27 23:42:32 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76B881065676; Sat, 27 Feb 2010 23:42:32 +0000 (UTC) (envelope-from weongyo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 654D78FC13; Sat, 27 Feb 2010 23:42:32 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o1RNgW1F008315; Sat, 27 Feb 2010 23:42:32 GMT (envelope-from weongyo@svn.freebsd.org) Received: (from weongyo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o1RNgWqi008313; Sat, 27 Feb 2010 23:42:32 GMT (envelope-from weongyo@svn.freebsd.org) Message-Id: <201002272342.o1RNgWqi008313@svn.freebsd.org> From: Weongyo Jeong Date: Sat, 27 Feb 2010 23:42:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r204437 - head/sys/dev/bwn X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2010 23:42:32 -0000 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) {