LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-30-2008, 08:51 PM   #1
michalr
LQ Newbie
 
Registered: Aug 2008
Location: Poznań, PL
Distribution: Slackware 12.1
Posts: 7

Rep: Reputation: 0
12.1 — /etc/rc.d/rc.wireless patch proposal


Hello,

A short foreword, as I am posting here for the first time. I am new to Slackware but not new to GNU/Linux. To be precise, it has been ages since I faced Slackware (7.1) for the last time. But I even was neither root nor a sudoer so it does not count . I have just installed Slackware 12.1 and I am very content so far. Being very disappointed at successive releases of OS X (I was a Mac user for a couple of years) I switched to Debian (PowerPC). Then, a year ago, I bought myself a PC and started using Ubuntu. I quickly got the same feeling I had earlier about OS X. Lack of stability, resource-consuming visual effects and other "features" I wanted/had to get rid of, including not-very-bright-automagic here and there. That would be my story.

I have gone through some threads on wireless networking with Slackware. With *a very little* of editing I got it up and running.

There is one thing, though, I find a little bit confusing. It is the following error:

Code:
root@nostromo:~# /etc/rc.d/rc.inet1 wlan0_start
/etc/rc.d/rc.inet1:  wlan0 information: 'Any ESSID'
Error for wireless request "Set Nickname" (8B1C) :
    SET failed on device wlan0 ; Operation not supported.
I have googled a little and I believe this is something very common. This error is caused by a following iwconfig call:

Code:
root@nostromo:/etc/rc.d# iwconfig wlan0 nickname foo
Error for wireless request "Set Nickname" (8B1C) :
    SET failed on device wlan0 ; Operation not supported.
The manual page for iwconfig reads:

Quote:
nick[name]
Set the nickname, or the station name. Some 802.11 products do define it, but this is not used as far as the protocols (MAC, IP, TCP) are concerned and completely useless as far as configuration goes. Only some wireless diagnostic tools may use it.
So I have gone through /etc/rc.d/rc.inet1 and /etc/rc.d/rc.wireless scripts and now I am wondering if calling iwconfig nick only if it has been evidently specified in respective conf files would not be a better approach.

Let's say, in the /etc/rc.d/rc.wireless file instead of doing:

Code:
if [ ! -n "$NICKNAME" ] ; then
    NICKNAME=`/bin/hostname`
fi
if [ -n "$ESSID" -o -n "$MODE" ] ; then
      echo "$0:  $IWCOMMAND nick $NICKNAME" | $LOGGER
      $IWCOMMAND nick $NICKNAME
fi
we could do:

Code:
if [ -n "$NICKNAME" ] && [ -n "$ESSID" -o -n "$MODE" ] ; then
        echo "$0:  $IWCOMMAND nick $NICKNAME" | $LOGGER
        $IWCOMMAND nick $NICKNAME
fi
What do you, guys, think?

Cheers,

- Michal Roszka
 
Old 08-31-2008, 03:32 AM   #2
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 14.0, Slackware 14.1, Slackware-current
Posts: 306

Rep: Reputation: 33
Anything that makes this error message go away would be welcome, since wireless is typically something that takes some tweaking to set up satisfactorily and when you see an error message you assume that it must be significant. In this case it isn't as far as I can see and it just wastes time in eliminating it as the cause of your problems.

Boguś Żaba
 
Old 08-31-2008, 08:06 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
I have no objections against this patch. Nothing uses the nick anyway.

Eric
 
  


Reply

Tags
iwconfig, patch, rcd, script, slackware12, wireless



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
Research Proposal zeeshanhayat General 7 09-25-2006 03:31 PM
Orinoco Wireless Patch on Debian? Eklipz Debian 2 12-10-2004 01:58 PM
A Modest Proposal shane25119 General 4 09-30-2004 06:24 PM
attempting to patch an Avaya Gold wireless card Evil_Cowgod Linux - Wireless Networking 3 01-24-2004 02:38 PM
How to patch orinoco wireless driver wkm001 Linux - Software 3 12-07-2003 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:42 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