LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-12-2014, 08:28 AM   #1
ben_whiteus
LQ Newbie
 
Registered: Feb 2014
Posts: 4

Rep: Reputation: Disabled
Wireless LAN interface do not work after resume


My wireless network connection is lost when I resume from hibernation/suspend. I would need to re-run the whole wireless lan configuration sequence again to get the network connectivity back. I suppose this is not be the correct behaviour.

A search on wireless lan interface issues after hibernation suggests that I should add a file in /etc/pm/config.d/ with the entry SUSPEND_MODULES="ath9k" (yup, the kernel module for my wifi interface is ath9k). I have tried this approach without success.

Are there any other suggestions to resolve the issues?

Thanks

Last edited by ben_whiteus; 02-13-2014 at 07:37 AM.
 
Old 02-13-2014, 07:37 AM   #2
ben_whiteus
LQ Newbie
 
Registered: Feb 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Well, I managed to resolve the issue after more troubleshooting. First off, there is no need to suspend the ath9k module. There were two other issues instead.

Firstly, the AP I was using used a hidden SSID (non-broadcast), and the wlan0 couldn't re-authenticate upon resume. As the use of hidden SSID is not a very effective security measure, I decided to do away with it. After making the changes at the AP, wlan0 managed to re-authenticate itself with the AP.

After successful re-authentication, the wlan0 interface still could not be used to connect to the Internet. The second issue was that dhcpcd was not running after resume. I am not sure if this is the normal. In any case, to resolve the issue, I added a script in /etc/pm/sleep.d/. The script is simply as follows:

Code:
#!/bin/bash                                                                                   
WLAN0_UP=`/sbin/ifconfig | grep wlan0 | awk '{print $1}'`

case $1 in
    hibernate)
        echo "Hey guy, we are going to suspend to disk!"
        ;;
    suspend)
        echo "Oh, this time we're doing a suspend to RAM. Cool!"
        ;;
    thaw)
        echo "oh, suspend to disk is over, we are resuming..."
        #dhcpcd somehow won't re-assign IP to wlan0 after resume                               
        #thus the need of this fix                                                            
        if [ -n $WLAN_UP ]; then
            dhcpcd wlan0
        fi
        ;;
    resume)
        echo "hey, the suspend to RAM seems to be over..."
        #dhcpcd somehow won't re-assign IP to wlan0 after resume                               
        #thus the need of this fix                                                            
        if [ -n $WLAN_UP ]; then
            dhcpcd wlan0
        fi
        ;;
    *)  echo "somebody is calling me totally wrong."
        ;;
esac
Cheers
 
  


Reply

Tags
hibernation, wifi


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
wireless LAN..doesn't work.. sarmoodi Linux - Newbie 10 01-29-2008 11:16 PM
getting wireless lan to work on Slackware 11.0 adityavpratap Slackware 10 07-29-2007 11:06 AM
how do I get my wireless LAN card to work paulbork Linux - Wireless Networking 3 03-01-2007 01:26 PM
which wireless lan cards work with 2.6? Marsanghas Linux - Wireless Networking 2 07-25-2006 08:46 AM
Help with wireless lan internet, nearly got it to work Belize Linux - Wireless Networking 10 10-27-2003 02:32 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration