Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Custom limits on wifi
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3136

PostPosted: Sat May 29, 2021 9:27 pm    Post subject: Custom limits on wifi Reply with quote

It's a low priority thing, but I might be interesting to explore.
Say, I have a machine running hostapd with crda.
Crda is used to set runtime limits like channels available and max TX power. It seems to also be used to instruct the clients how to behave, though I don't know how exactly that information is passed on.

Now, I only need wireless access in a very small area. There is no need for the signal to cover the area within 100m radius, or penetrate walls. I could probably limit it to 1mW and still have all my needs covered, at the same time limiting the leaks to the "environment".
This can be easily done manually on one end of the link, but the clients may or may not be smart enough to limit their power output depending on the link quality. So... Can I abuse crda or (something else) to have the access point inform the clients that local regulations don't allow them to do certain things (like transmit strong signal)
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Sat May 29, 2021 10:22 pm    Post subject: Reply with quote

The Linux module cfg80211 allow to set the regdomain and to activate or desactivate the 40Mhz channel width in the 2.4mhz bandwidth.
Code:
modinfo -p cfg80211
bss_entries_limit:limit to number of scan BSS entries (per wiphy, default 1000) (int)
ieee80211_regdom:IEEE 802.11 regulatory domain code (charp)
cfg80211_disable_40mhz_24ghz:Disable 40MHz support in the 2.4GHz band (bool)

_________________
Paul
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum