Commit 759b973b authored by Gábor Stefanik's avatar Gábor Stefanik Committed by John W. Linville

b43: Add LP-PHY firmware loading support

Add support for loading LP-PHY firmware to b43_try_request_fw.
Signed-off-by: default avatarGábor Stefanik <netrolller.3d@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f0ea6ce1
...@@ -1955,8 +1955,12 @@ static int b43_try_request_fw(struct b43_request_fw_context *ctx) ...@@ -1955,8 +1955,12 @@ static int b43_try_request_fw(struct b43_request_fw_context *ctx)
filename = "ucode5"; filename = "ucode5";
else if ((rev >= 11) && (rev <= 12)) else if ((rev >= 11) && (rev <= 12))
filename = "ucode11"; filename = "ucode11";
else if (rev >= 13) else if (rev == 13)
filename = "ucode13"; filename = "ucode13";
else if (rev == 14)
filename = "ucode14";
else if (rev >= 15)
filename = "ucode15";
else else
goto err_no_ucode; goto err_no_ucode;
err = b43_do_request_fw(ctx, filename, &fw->ucode); err = b43_do_request_fw(ctx, filename, &fw->ucode);
...@@ -2004,6 +2008,16 @@ static int b43_try_request_fw(struct b43_request_fw_context *ctx) ...@@ -2004,6 +2008,16 @@ static int b43_try_request_fw(struct b43_request_fw_context *ctx)
else else
goto err_no_initvals; goto err_no_initvals;
break; break;
case B43_PHYTYPE_LP:
if (rev == 13)
filename = "lp0initvals13";
else if (rev == 14)
filename = "lp0initvals14";
else if (rev >= 15)
filename = "lp0initvals15";
else
goto err_no_initvals;
break;
default: default:
goto err_no_initvals; goto err_no_initvals;
} }
...@@ -2038,6 +2052,16 @@ static int b43_try_request_fw(struct b43_request_fw_context *ctx) ...@@ -2038,6 +2052,16 @@ static int b43_try_request_fw(struct b43_request_fw_context *ctx)
else else
goto err_no_initvals; goto err_no_initvals;
break; break;
case B43_PHYTYPE_LP:
if (rev == 13)
filename = "lp0bsinitvals13";
else if (rev == 14)
filename = "lp0bsinitvals14";
else if (rev >= 15)
filename = "lp0bsinitvals15";
else
goto err_no_initvals;
break;
default: default:
goto err_no_initvals; goto err_no_initvals;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment