Skip to content

Commit

Permalink
Misc. simplifications (esp-rs#298)
Browse files Browse the repository at this point in the history
* Hide os_adapter

* Remove global is_connected fn

* Extract state management

* Set mode when creating the controller, extract some fns

* Encapsulate WifiMode a bit better

* Simplify setting addresses to static data

* Only set verbose logging once

* Clean up imports

* Deduplicate wifi auth method conversion

* Clean up powersave mode setup

* Remove unnecessary condition

* Explain transmute

* Misc small readability improvements

* Remove unnecessary conversion

* Prepare waiting for multiple interfaces to start and stop

* Pull up wifi interface to caller

* Remove unnecessary binding

* Don't log warnings twice

* Simplify dump_packet

* Explain default config in constructor

* Remove always-panicking new

* Elide lifetime

* Fix sometimes-unused import
  • Loading branch information
bugadani authored and bjoernQ committed May 24, 2024
1 parent 2340871 commit 2b51da4
Show file tree
Hide file tree
Showing 3 changed files with 463 additions and 448 deletions.
Loading

0 comments on commit 2b51da4

Please sign in to comment.