Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use netlink instead of Wireless Extensions #1879

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

Use netlink instead of Wireless Extensions #1879

wants to merge 15 commits into from

Conversation

Caellian
Copy link
Collaborator

@Caellian Caellian commented May 1, 2024

This PR removes deprecated iwlib related code and replaces it with netlink library.

State

  • change/setup dependencies
    • update CI & Docker files
  • implement some basic code that can handle some of the existing stats
    • dispatch new requests when requests aren't in_flight already
  • simplify changes for future contributors
    • improve documentation
  • reduce diff

Testing

  • nl cache works
  • test commands
    • wireless_ap
    • wireless_bitrate
    • wireless_channel
    • wireless_essid
    • wireless_freq
    • wireless_link_qual
    • wireless_link_qual_max
    • wireless_mode
  • test default command values
  • ensure correct interface data is returned
  • ensure correct network info is returned
  • check delay between command issuing and finish callback to determine ideal handling (eager vs. lazy)
  • test what happens when conky only renders once

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
@Caellian Caellian linked an issue May 1, 2024 that may be closed by this pull request
@github-actions github-actions bot added sources PR modifies project sources dependencies Issue or PR that affects dependencies networking Issue or PR related to networking support labels May 1, 2024
Copy link

netlify bot commented May 1, 2024

Deploy Preview for conkyweb canceled.

Name Link
🔨 Latest commit 118e0f8
🔍 Latest deploy log https://app.netlify.com/sites/conkyweb/deploys/6636d912614e4d000818ad68

@brndnmtthws brndnmtthws added the feature New feature PR or issue label May 1, 2024
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
@github-actions github-actions bot added 3rdparty Issue or PR that suggests changes to 3rd party dependencies gh-actions Issue or PR that suggest changing GitHub actions build system Issues and PRs related to build system (CMake) and process labels May 1, 2024
@Caellian Caellian force-pushed the dev/netlink branch 10 times, most recently from a18dc06 to cd43e19 Compare May 1, 2024 16:00
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
Update linux headers

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
Replace define with a wrapper struct.

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
src/netlink-conky.h Outdated Show resolved Hide resolved
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
@Caellian
Copy link
Collaborator Author

Caellian commented May 5, 2024

Ok, got interface information to update, so this PR is ~70% done with regards to figuring stuff out:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rdparty Issue or PR that suggests changes to 3rd party dependencies build system Issues and PRs related to build system (CMake) and process dependencies Issue or PR that affects dependencies feature New feature PR or issue gh-actions Issue or PR that suggest changing GitHub actions macos Issue or PR related to MacOS networking Issue or PR related to networking support sources PR modifies project sources
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate from libiw to libnl for wireless support
2 participants