Page MenuHomeFreeBSD

urtwn: add an option to compile the driver without firmware specific code
ClosedPublic

Authored by avos on Jan 10 2016, 11:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 5:42 AM
Unknown Object (File)
Mon, Dec 16, 2:14 PM
Unknown Object (File)
Sat, Nov 30, 2:58 AM
Unknown Object (File)
Nov 3 2024, 10:58 PM
Unknown Object (File)
Sep 29 2024, 11:24 PM
Unknown Object (File)
Sep 18 2024, 3:25 AM
Unknown Object (File)
Sep 8 2024, 11:20 AM
Unknown Object (File)
Sep 8 2024, 9:24 AM
Subscribers

Details

Summary
  • Add URTWN_WITHOUT_UCODE option (will disable any firmware specific code when set).
  • Do not exclude the driver from build when MK_SOURCELESS_UCODE is set (URTWN_WITHOUT_UCODE will be enforced unconditionally).
  • Do not abort initialization when firmware cannot be loaded; behave like the URTWN_WITHOUT_UCODE option was set.
  • Drop some unused variables from urtwn_softc structure.
Test Plan

Tested with RTL8188EU and RTL8188CUS in HOSTAP and STA modes.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

avos retitled this revision from to urtwn: add an option to compile the driver without firmware specific code.
avos updated this object.
avos edited the test plan for this revision. (Show Details)
avos added reviewers: adrian, kevlo.
avos set the repository for this revision to rS FreeBSD src repository - subversion.

wait, how's this supposed to work without firmware?

For me, device works fine without firmware (however, firmware commands are not available in that case).

Sorry I don't see the benefits of this change. If you want urtwn(4)
to be similar to the vendor driver as opposed to rewriting from scratch
like damien@ did, I suggest maybe we could implement shim layer in os_dep
directory from the Realtek's vendor source. I've had a patch set but it's
not finished yet.

Heh, I'm just about to pull out urtwn into sys/dev/urtwn/ before I do the RTL8188EE support. We should talk on irc about it and plan things out!

In D4849#103153, @kevlo wrote:

Sorry I don't see the benefits of this change.

This change will allow to use the driver without external blobs + any error in the firmware download path will be treated as non-critical.

adrian edited edge metadata.

okay. Let's do it.

This revision is now accepted and ready to land.Feb 4 2016, 9:04 PM
kevlo edited edge metadata.
This revision was automatically updated to reflect the committed changes.