How to tweak a WiFi driver in Linux? - eviltoast

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?