diff options
author | weongyo <weongyo@FreeBSD.org> | 2010-02-27 23:42:32 +0000 |
---|---|---|
committer | weongyo <weongyo@FreeBSD.org> | 2010-02-27 23:42:32 +0000 |
commit | 9e0b98ecc5f10c13b2abee6e07bfe2420801f5a1 (patch) | |
tree | 75eb65492d3ade461f0523dbbc5f9407c865ea76 /sys/dev/bwn | |
parent | 994749fe919f6da207ab11375f0d24a5bc80fa12 (diff) | |
download | FreeBSD-src-9e0b98ecc5f10c13b2abee6e07bfe2420801f5a1.zip FreeBSD-src-9e0b98ecc5f10c13b2abee6e07bfe2420801f5a1.tar.gz |
fixes a bug to load firmware images for LP PHY. For LP PHY always,
`lp_' string is contained in its full image names.
Diffstat (limited to 'sys/dev/bwn')
-rw-r--r-- | sys/dev/bwn/if_bwn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/bwn/if_bwn.c b/sys/dev/bwn/if_bwn.c index c21b4c3..482683a 100644 --- a/sys/dev/bwn/if_bwn.c +++ b/sys/dev/bwn/if_bwn.c @@ -7789,8 +7789,9 @@ bwn_fw_get(struct bwn_mac *mac, enum bwn_fwtype type, 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) { |