LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 12-05-2016, 02:55 PM   #16
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware 14.1 (32 and 64 bit)
Posts: 1,594

Rep: Reputation: 124Reputation: 124

Quote:
Originally Posted by louigi600 View Post
A bit off topic but in response to a question ... hope it helps:

You can do it from the command line with iw: (you're form Germany so I'll give you German reg examples)

Code:
iw reg set ISO_3166-1_alpha-2
iw reg set DE
If you use wpa_supplicant you can add this in there (and have different ones for each configured wifi network)
Code:
COUNTRY=DE
Be warned:

In practice if you use crda (and slackware does) you're not going to gat any more channels than what the domain that your wifi card was marketed for has, even if you totally disregard the reg domain stuff. If by any change you buy via internet from one of the countries with less restrictive domains that the country you plan to use the card in you might want to set the correct domain to operate within limitation of your country.

Way back in the early days when regulatory domains were introduced I used to tinker with the kernel source to set the default to JP (the less restrictive domain) but things have gotten more complicated over the years and I gave up on that approach. But maybe it's still possible to alter the default world "00" region on linux/net/wireless/reg.c to look like JP ... but to get that to work you need to disable crda (else it will limit the chanells to whatever is is set in the firmware set reg domain of your card). One could try dissuading udev from running crda and see how that works jointly with tinkering with kernel source. Be warned that this may be illegal in some countries.
Many thanks for your detailed answer David! My bad, I should have also written that I had searched for it and had found the solution on this very site. For others that might be led here from a search I will add one more solution just for completeness' sake:
Create a file in /etc/modprobe.d/ with the extension conf, for the Raspberry Pi's build-in wifi card that is driven by the brcmfmac module it should read (for example for my Germany region):

Code:
softdep brcmfmac pre: cfg80211
options cfg80211 ieee80211_regdom=DE
About the regulatory differences: That was in most parts new to me, thanks. A quick search didn't show me a clear "winner" between German and Chinese (that was what the kernel or whatever it is selected as the region before) regional settings. Maybe I will try both and experiment, if the connection is becoming better. Could be the case If ever I will get a router with 5 GHz capabilities.

Last edited by titopoquito; 12-05-2016 at 02:58 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Raspbian GNU/Linux upgrade from Wheezy to Raspbian Jessie 8 LXer Syndicated Linux News 1 06-09-2016 12:12 PM
The Slackware ARM Question of the day: why xf86-video-s3-0.6.5-arm-4.tgz ?!? Darth Vader Slackware 2 09-15-2013 09:23 PM


All times are GMT -5. The time now is 12:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration