this post was submitted on 28 Sep 2023
4 points (75.0% liked)

Operating System Development

306 readers
1 users here now

A place to discuss the world of operating system development. Open for all architectures.

Rules

Resources

Icon base by Lorc under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS
 

I want to take aт existing, a standard or one of the popular ones, WiFi driver for Linux and tweak it. I'll inroduce a whitelist into it. That is, to the consumer a driver will show the networks from a whitelist only ignoring all other ones.

It's a PoC. I want to implement it as simply as possible.

Can this be implemented? And how, in a high level?

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago (1 children)

Well here's the AP scan code for the Intel WiFi driver: https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes.git/tree/net/wireless/scan.c

Go though the occurrences of SSID and decide whether you need to add some code to check it before continuing for each one.

Then you can either compile a whole new kernel, or setup dkms to dynamically load the module in.

[–] nothingness 1 points 1 year ago
[–] [email protected] 1 points 1 year ago (1 children)

I would read the code and find the relevant sections then see if it's simple enough to do what I want.

[–] nothingness 1 points 1 year ago (1 children)

How would you evaluate whether or not it'd be simple enough?

[–] [email protected] 1 points 1 year ago

If I can understand the code well enough and have an idea of how to implement the changes I would want to make.