ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Юрий Аляев" <mutab0r@rambler.ru>
To: community@lists.altlinux.org
Subject: [Comm] [Решено] Регион WiFi в P5.1
Date: Wed, 22 Jun 2016 11:11:39 +0300
Message-ID: <1466583099.601194.31142.50369@mail.rambler.ru> (raw)


Снова всех приветствую!
Так получилось, что отвечаю сам себе :) Решил тут опять помучиться с настройкой вайфая. На этот раз начал с того, что попытался пересобрать сизифовский iw под 5.1. И он собрался! Но работать не стал, т.е. делает вид, что работает, но каналы не появляются. Стал я внимательно курить dmesg и заметил следующее: 

[mutabor@Digitalina Downloads]$ sudo dmesg | grep 80211
[sudo] password for mutabor:
[    6.009852] cfg80211: Using static regulatory domain info
[    6.009856] cfg80211: Regulatory domain: US
[    6.009890] cfg80211: Calling CRDA for country: US

Погуглил малость и понял, что у меня вместо ядра кусок окаменевшего экскремента мамонта, где регион wifi задаётся статически при загрузке модуля. Точнее, это можно отключить, но надо пересобирать модуль, ибо:

[mutabor@Digitalina Downloads]$ sudo cat /boot/config-2.6.30-std-def-alt15 | grep -i wireless
CONFIG_WIRELESS=y
CONFIG_WIRELESS_OLD_REGULATORY=y

Последний-то параметр и не даёт iw'у поменять регион. Но даже в этом случае не всё потеряно. Достаточно сделать так:

[mutabor@Digitalina Downloads]$ sudo cat /etc/modprobe.d/cfg80211 
options cfg80211 ieee80211_regdom=EU

Причём параметр может быть только либо US (по умолчаню, 11 каналов), либо EU (то, что мне надо), либо JP (добавляется ещё один канал, но он дохлый, смысла его использовать нет). Теперь видны все 13 каналов :) Такой вот рецепт для техногеронтофилов и всех, кто в бронепоезде ;-)

Юрий Аляев.

                 reply	other threads:[~2016-06-22  8:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1466583099.601194.31142.50369@mail.rambler.ru \
    --to=mutab0r@rambler.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git