LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-12-2013, 05:22 AM   #1
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Rep: Reputation: Disabled
Smile how to setup wireless Ap mode for channel 13?


Dear all. I'd successfully setup the wireless card for
Ap mode , and channel 1~11 is O.K.
But I found it difficultly to setup channel 13. how
should I setup on my hostapd.conf or on other file?
 
Old 08-12-2013, 06:56 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,334

Rep: Reputation: Disabled
This could be a regulatory domain issue with the wireless driver. What make/model wireless card are you using?
 
Old 08-12-2013, 07:12 PM   #3
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by ser olmy View Post
this could be a regulatory domain issue with the wireless driver. What make/model wireless card are you using?
dnxa-92
 
Old 08-12-2013, 07:21 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,334

Rep: Reputation: Disabled
I'm not familiar with that card, but I believe it's Atheros-based.

I came across a thread on the Gentoo forums about regulatory domain issues with the Atheros driver, and it's been marked as solved. You could try making the same change in regd.c and see if it solves the problem.
 
Old 08-12-2013, 09:45 PM   #5
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by Ser Olmy View Post
I'm not familiar with that card, but I believe it's Atheros-based.

I came across a thread on the Gentoo forums about regulatory domain issues with the Atheros driver, and it's been marked as solved. You could try making the same change in regd.c and see if it solves the problem.
I use this command and got nothing , why?
Code:
# grep -i crda /var/log/messages
 
Old 08-12-2013, 09:57 PM   #6
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by Angela Wu View Post
I use this command and got nothing , why?
Code:
# grep -i crda /var/log/messages
I can't find the file regd.c in my linux??
 
Old 08-12-2013, 10:13 PM   #7
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,334

Rep: Reputation: Disabled
Quote:
Originally Posted by Angela Wu View Post
I can't find the file regd.c in my linux??
You'll need to download the kernel source. The fix as described in the forum thread involves editing a source code file for the Atheros driver and then recompile the kernel. It's not all that hard, but if you haven't done anything like that before, the learning curve may feel a bit steep.

Check which kernel you're currently running with uname -r, and either install the kernel source package for your distribution or download the unmodified source code from kernel.org. You should then be able to locate the regd.c file in the /usr/src/<kernel_version>/drivers/net/wireless/ath directory.
 
Old 08-12-2013, 10:43 PM   #8
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by Ser Olmy View Post
You'll need to download the kernel source. The fix as described in the forum thread involves editing a source code file for the Atheros driver and then recompile the kernel. It's not all that hard, but if you haven't done anything like that before, the learning curve may feel a bit steep.

Check which kernel you're currently running with uname -r, and either install the kernel source package for your distribution or download the unmodified source code from kernel.org. You should then be able to locate the regd.c file in the /usr/src/<kernel_version>/drivers/net/wireless/ath directory.
Do I need to compile all the kernel source code?
 
Old 08-12-2013, 10:48 PM   #9
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,334

Rep: Reputation: Disabled
Theoretically, if the current Atheros driver is compiled as a module, you only have to recompile that particular module. In any case you could compile the entire kernel, but then just copy the module to the relevant /lib/modules/<kernel_version> subdirectory.

If the Atheros driver is compiled into the kernel (unlikely), you'll have to recompile the entire kernel, install it and reboot.
 
Old 08-13-2013, 02:37 AM   #10
Angela Wu
Member
 
Registered: Jun 2013
Location: Taiwan
Posts: 99

Original Poster
Rep: Reputation: Disabled
Question What should I do with regd.c?

Quote:
Atheros linux drivers don't use kernel regdomain, it hard code it in the drivers.
For the 5G bands, there's only 2 profile (drivers/net/wireless/ath/regd.c):
代碼:

#define ATH9K_5GHZ_ALL ATH9K_5GHZ_5150_5350, \
ATH9K_5GHZ_5470_5850

/* This one skips what we call "mid band" */
#define ATH9K_5GHZ_NO_MIDBAND ATH9K_5GHZ_5150_5350, \
ATH9K_5GHZ_5725_5850
Do I need to modify the regd.c? For what content?
 
Old 08-13-2013, 11:32 AM   #11
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,334

Rep: Reputation: Disabled
Quote:
Originally Posted by Angela Wu View Post
Do I need to modify the regd.c? For what content?
The second last post in the thread on the Gentoo forum suggests adding a #define statement. Earlier, the OP seems to have worked around his issue (which was related to the 5 GHz band) by extracting and using EEPROM code from the Windows driver.

You haven't stated exactly what error you got when you tried using channel 13, so it's hard to say for sure that it is indeed a regulatory domain issue, but the fact that channel 11 works is a strong indicator.

I suggest you try one or both of the methods used by the OP in that thread, and return here if you're still experiencing problems (preferably with details about what you've tried, the contents of your config files, and the exact error messages you're getting, if any.)
 
  


Reply

Tags
wireless n



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
[SOLVED] Linux Channel Bonding: active-backup mode rajivdp Linux - Newbie 2 05-17-2011 06:05 AM
Determine if memory is operating in dual channel mode vascov Linux - Hardware 1 06-26-2009 02:31 AM
sound - 5 channel mode problem ddaas Linux - Hardware 0 01-21-2006 04:04 AM
Dual Channel Vs. regular mode wormraper Ubuntu 1 10-30-2005 08:20 PM
XChat 1.x channel mode toolbar absent in version 2.x sewer_monkey Linux - Software 0 01-20-2004 08:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:18 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
Open Source Consulting | Domain Registration