[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#999585: reportbug: Fail to set wifi region domain with kernel 5.14 and 5.15 for Atheros AR5418



Package: reportbug
Version: 11.1.0
Severity: normal
X-Debbugs-Cc: emserfo@gmail.com

Dear Maintainer,
I'm using custom kernel Linux 5.10.75 and after reboot I was unable to list my wifi ssid and I solved the problem setting again the wifi regodom but under Linux 5.14 (shipped with 
debian testing) or custom 5.15, I'm not able to set proper regdomain.
Hardware (macbook pro 2006):
03:00.0 Network controller: Qualcomm Atheros AR5418 Wireless Network Adapter [AR5008E 802.11(a)bgn] (PCI-Express) (rev 01)

With these commands I solved the issue under Linux 5.10:
	sudo iw reg set IT
	sudoedit /etc/default/crda
	sudo update-alternatives --set regulatory.db /lib/firmware/regulatory.db-upstream
While under Linux 5.14 and 5.15 these have no result:
	global
	country 00: DFS-UNSET
	(2402 - 2472 @ 40), (N/A, 20), (N/A)
	(2457 - 2482 @ 20), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
	(2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, PASSIVE-SCAN
	(5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
	(5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
	(5490 - 5730 @ 160), (N/A, 20), (0 ms), DFS, PASSIVE-SCAN
	(5735 - 5835 @ 80), (N/A, 20), (N/A), PASSIVE-SCAN
	(57240 - 63720 @ 2160), (N/A, 0), (N/A)

	phy#0
	country 99: DFS-UNSET
	(2402 - 2472 @ 40), (N/A, 20), (N/A)
	(2457 - 2482 @ 40), (N/A, 20), (N/A), PASSIVE-SCAN
	(2474 - 2494 @ 40), (N/A, 20), (N/A), NO-OFDM, PASSIVE-SCAN
that is the higher channels are disabled.
Below output of "dmesg | grep ath":
	 17 [   18.829832] bus: 'pci': add driver ath9k                                     
	 16 [   18.829880] bus: 'pci': __driver_probe_device: matched device 0000:03:00.0 with driver ath9k
	 15 [   18.829891] bus: 'pci': really_probe: probing driver ath9k with device 0000:03:00.0
	 14 [   18.829906] ath9k 0000:03:00.0: no default pinctrl state                     
	 13 [   18.829925] ath9k 0000:03:00.0: runtime IRQ mapping not provided by arch     
	 12 [   18.829946] ath9k 0000:03:00.0: enabling device (0000 -> 0002)               
	 11 [   18.838713] ath9k 0000:03:00.0: enabling bus mastering                       
	 10 [   19.793166] ath: EEPROM regdomain: 0x37                                      
	  9 [   19.793178] ath: EEPROM indicates we should expect a direct regpair map      
	  8 [   19.793182] ath: Country alpha2 being used: AL                               
	  7 [   19.793185] ath: Regpair used: 0x37                                          
	  6 [   21.148677] device: 'ath9k-phy0': device_add                                 
	  5 [   21.148751] PM: Adding info for No Bus:ath9k-phy0                            
	  4 [   21.148861] driver: 'ath9k': driver_bound: bound to device '0000:03:00.0'    
	  3 [   21.148924] bus: 'pci': really_probe: bound device 0000:03:00.0 to driver ath9k
	  2 [   21.579834] ath9k 0000:03:00.0 wlp3s0: renamed from wlan0                    
	  1 [   29.710626] Modules linked in: appletouch(+) isight_firmware ath9k ath9k_common ath9k_hw ath nls_ascii nls_cp437 vfat fat applesmc mac80211 coretemp efi_pstore libarc4 iTCO_wdt     pcspkr iTCO_vendor_support watchdog cfg80211 sg rng_core rfkill evdev video ac apple_bl button snd_hda_codec_idt snd_hda_codec_generic ledtrig_audio snd_hda_intel snd_intel_dspcfg     snd_hda_codec snd_hda_core snd_pcm snd_timer snd nfsd soundcore firewire_sbp2 auth_rpcgss nfs_acl fuse lockd grace configfs sunrpc efivarfs ip_tables x_tables autofs4 ext4 crc32c_g    eneric crc16 mbcache jbd2 hid_appleir hid_apple hid_generic usbhid hid sd_mod t10_pi i2c_algo_bit drm_ttm_helper ahci ttm drm_kms_helper libahci syscopyarea uhci_hcd sysfillrect at    a_piix firewire_ohci libata i2c_i801 ehci_pci ehci_hcd sysimgblt lpc_ich scsi_mod firewire_core fb_sys_fops usbcore i2c_smbus crc_itu_t mfd_core scsi_common drm sky2 usb_common
	18  [   29.858639] Modules linked in: appletouch(+) isight_firmware ath9k ath9k_common ath9k_hw ath nls_ascii nls_cp437 vfat fat applesmc mac80211 coretemp efi_pstore libarc4 iTCO_wdt     pcspkr iTCO_vendor_support watchdog cfg80211 sg rng_core rfkill evdev video ac apple_bl button snd_hda_codec_idt snd_hda_codec_generic ledtrig_audio snd_hda_intel snd_intel_dspcfg     snd_hda_codec snd_hda_core snd_pcm snd_timer snd nfsd soundcore firewire_sbp2 auth_rpcgss nfs_acl fuse lockd grace configfs sunrpc efivarfs ip_tables x_tables autofs4 ext4 crc32c_g    eneric crc16 mbcache jbd2 hid_appleir hid_apple hid_generic usbhid hid sd_mod t10_pi i2c_algo_bit drm_ttm_helper ahci ttm drm_kms_helper libahci syscopyarea uhci_hcd sysfillrect at    a_piix firewire_ohci libata i2c_i801 ehci_pci ehci_hcd sysimgblt lpc_ich scsi_mod firewire_core fb_sys_fops usbcore i2c_smbus crc_itu_t mfd_core scsi_common drm sky2 usb_common

Editing file "drivers/net/wireless/ath/regd.c" in kernel source as: 
	/* Can be used for:
	 * 0x60, 0x61, 0x62 */
	static const struct ieee80211_regdomain ath_world_regdom_60_61_62 = {
	.n_reg_rules = 5,
	.alpha2 =  "99",
	.reg_rules = {
		ATH_2GHZ_ALL,
		ATH_5GHZ_ALL,
	}
	};

	/* Can be used by 0x63 and 0x65 */
	static const struct ieee80211_regdomain ath_world_regdom_63_65 = {
	.n_reg_rules = 4,
	.alpha2 =  "99",
	.reg_rules = {
	/*		ATH_2GHZ_CH01_11,
		ATH_2GHZ_CH12_13,
		ATH_5GHZ_NO_MIDBAND,
	*/
		ATH_2GHZ_ALL,
		ATH_5GHZ_ALL,
        }
	};

	/* Can be used by 0x64 only */
	static const struct ieee80211_regdomain ath_world_regdom_64 = {
	.n_reg_rules = 3,
	.alpha2 =  "99",
	.reg_rules = {
	/*	ATH_2GHZ_CH01_11,
		ATH_5GHZ_NO_MIDBAND,
	*/
		ATH_2GHZ_ALL,
		ATH_5GHZ_ALL,
	    }
	};

	/* Can be used by 0x66 and 0x69 */
	static const struct ieee80211_regdomain ath_world_regdom_66_69 = {
	.n_reg_rules = 3,
	.alpha2 =  "99",
	.reg_rules = {
	/*		ATH_2GHZ_CH01_11,
		ATH_5GHZ_ALL,
	*/
        ATH_2GHZ_ALL,
		ATH_5GHZ_ALL,
	    }
	};

	/* Can be used by 0x67, 0x68, 0x6A and 0x6C */
	static const struct ieee80211_regdomain ath_world_regdom_67_68_6A_6C = {
	.n_reg_rules = 4,
	.alpha2 =  "99",
	.reg_rules = {
	/*		ATH_2GHZ_CH01_11,
		ATH_2GHZ_CH12_13,
		ATH_5GHZ_ALL,
	*/
        ATH_2GHZ_ALL,
		ATH_5GHZ_ALL,
	    }
	};

result in all 2,4GHz channel enabled and all 5GHz channels disabled.


-- Package-specific info:
** Environment settings:
INTERFACE="text"

** /home/salvicio/.reportbugrc:
reportbug_version "11.1.0"
mode standard
ui text
realname "Alexander Beerhoff"
email "emserfo@gmail.com"
no-cc
list-cc-me
smtphost reportbug.debian.org

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing'), (99, 'unstable'), (99, 'stable')
Architecture: i386 (i686)

Kernel: Linux 5.15.0radeonfirmware (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR:fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages reportbug depends on:
ii  apt                2.3.11
ii  python3            3.9.7-1
ii  python3-reportbug  11.1.0
ii  sensible-utils     0.0.17

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                                 <none>
ii  debconf                                    1.5.79
ii  debsums                                    3.0.2
pn  dlocate                                    <none>
pn  emacs-bin-common                           <none>
ii  exim4-daemon-light [mail-transport-agent]  4.95-2
ii  file                                       1:5.39-3
ii  gnupg                                      2.2.27-2
ii  python3-urwid                              2.1.2-2
pn  reportbug-gtk                              <none>
ii  xdg-utils                                  1.1.3-4.1

Versions of packages python3-reportbug depends on:
ii  apt                2.3.11
ii  file               1:5.39-3
ii  python3            3.9.7-1
ii  python3-apt        2.3.0
ii  python3-debian     0.1.42
ii  python3-debianbts  3.2.0
ii  python3-requests   2.25.1+dfsg-2
ii  sensible-utils     0.0.17

python3-reportbug suggests no packages.

-- no debconf information


Reply to: