LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-03-2014, 07:20 AM   #1
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94

Rep: Reputation: 1
Hostapd won't change channels.


I'm using slackware 14.1 as a router and AP. I need to change the channel of the wifi card because of interference. When I change the channel in hostapd.conf it just takes down the wireless network. I've tired to take the card down and change the channel using iwconfig but it gives me this error.

Error for wireless request "Set Frequency" (8B04) : SET failed on device wlan0 ; Device or resource busy.

I'm not sure how the wifi card could be busy when it's down. I've also tried stopping hostapd as well but get the same error.

How do I figure out what is using the card even if it's down or what can I do to change the channel of the card?
 
Old 07-03-2014, 02:36 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,882

Rep: Reputation: 162Reputation: 162
Do you stop hostapd when changing channel?
 
Old 07-03-2014, 04:53 PM   #3
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94

Original Poster
Rep: Reputation: 1
Iwconfig gives me the same error even if I try to change the channel while hostapd is stopped.
 
Old 07-07-2014, 02:45 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,882

Rep: Reputation: 162Reputation: 162
What's iwconfig output? Is WiFi interface up-running?
 
Old 07-07-2014, 09:40 PM   #5
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94

Original Poster
Rep: Reputation: 1
I stopped hostapd and took down the wireless adapter. I looked at the network adapters with ifconfig and wlan0 is gone.

iwconfig gives me this error.

Code:
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlan0 ; Device or resource busy.
Same error if I leave the wireless adapter up.
 
Old 07-08-2014, 02:14 PM   #6
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,882

Rep: Reputation: 162Reputation: 162
If wireless adapter is up, is there any other output of 'iwconfig wlan0' or just above error output?
 
Old 07-08-2014, 02:37 PM   #7
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94

Original Poster
Rep: Reputation: 1
Here's the output of iwconfig wlan0.

Code:
wlan0     IEEE 802.11abgn  Mode:Master  Tx-Power=20 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

Last edited by orsty9001; 07-09-2014 at 02:24 PM.
 
Old 07-09-2014, 02:30 PM   #8
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,882

Rep: Reputation: 162Reputation: 162
Normally, output of iwconfig wlan0 should be like following. Your output doesn't even have ESSID.
Do you configure wlan0 interface, such as ESSID?

Code:
wlan0 IEEE 802.11abg ESSID:"magdanoz"
Mode:Managed Frequency:2.442 GHz Access Point: 00:24:00:90:8F:38
Bit Rate=54 Mb/s Tx-Power=15 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=70/70 Signal level=-39 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

Last edited by nini09; 07-09-2014 at 02:33 PM.
 
Old 07-09-2014, 03:31 PM   #9
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94

Original Poster
Rep: Reputation: 1
That's all configured in hostapd.conf.
 
Old 07-10-2014, 02:38 PM   #10
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,882

Rep: Reputation: 162Reputation: 162
Following two links might help you to configure AP on slackware.
1)http://docs.slackware.com/howtos:net...s_access_point
The link is example hostapd.conf on slackware and tell you how to cinfigure other things.
2)http://wireless.kernel.org/en/users/...tation/hostapd
The link explain a little detail about parameter in hostapd.
 
Old 07-11-2014, 12:08 PM   #11
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94

Original Poster
Rep: Reputation: 1
There isn't anything in those links that relate to my issue.

I appreciate your help anyway though.
 
Old 07-15-2014, 01:24 AM   #12
jasonelve
LQ Newbie
 
Registered: Jul 2014
Location: New York, NY, United States Of America
Posts: 5

Rep: Reputation: Disabled
Well as for myself I did ceased hostapd and took down the wi-fi adaptor. I considered the system plugs with ipconfig and wan is gone. As this is the second time it did happened for my professional website design site.

Last edited by jasonelve; 07-19-2014 at 03:47 AM.
 
  


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
Mythbackend 20.2 won't change channels properly tea of evil Linux - Software 0 09-21-2007 11:24 PM
MPlayer won't use all 6 channels DeNayGo Linux - Software 1 06-26-2005 02:17 PM
Can't change channels in MythTV with Slackware 10.1 NetRAVEN5000 Linux - Software 2 06-15-2005 04:09 PM
TV Wonder VE won't find channels on MDK 10 servererror Linux - Hardware 1 09-05-2004 11:32 PM
XawTV won't pick up all the channels... BlueTrane Linux - Software 4 07-12-2003 02:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:08 PM.

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