Unix Technical Forum

Re: SIOCSIFMEDIA:Invalid Argument (SMCWUSBT-G2/ar5523)

This is a discussion on Re: SIOCSIFMEDIA:Invalid Argument (SMCWUSBT-G2/ar5523) within the mailing.openbsd.tech forums, part of the OpenBSD category; --> On Tuesday 19 February 2008 17:49:30 Kaspo Lo wrote: > Hallo ... > > My usb wifi (SMCWUSBT-G2/ar5523) is ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 05:42 AM
Brad
 
Posts: n/a
Default Re: SIOCSIFMEDIA:Invalid Argument (SMCWUSBT-G2/ar5523)

On Tuesday 19 February 2008 17:49:30 Kaspo Lo wrote:
> Hallo ...
>
> My usb wifi (SMCWUSBT-G2/ar5523) is actually running. it shows in
> ifconfig, but when i want to set it in monitor mode, it likely had
> something i dont know how. What should i do ..
>
> #ifconfig uath0
> uath0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
> lladdr 00:13:f7:79:03:27
> groups: wlan
> media: IEEE802.11 autoselect (DS1)
> status: no network
> ieee80211: nwid "" 100dBm
> inet6 fe80::213:f7ff:fe79:327%uath0 prefixlen 64 scopeid 0x4
> inet 72.51.27.51 netmask 0xff000000 broadcast 72.51.27.51
> #
> #ifconfig uath0 mediaopt monitor
> ifconfig: SIOCSIFMEDIA: Invalid Argument
> #


The monitor mode capabilities flag is missing. Try out the following
diff..

Index: if_uath.c
================================================== =================
RCS file: /cvs/src/sys/dev/usb/if_uath.c,v
retrieving revision 1.32
diff -u -p -r1.32 if_uath.c
--- if_uath.c 21 Jan 2008 12:57:31 -0000 1.32
+++ if_uath.c 19 Feb 2008 23:35:12 -0000
@@ -372,7 +372,8 @@ uath_attach(struct device *parent, struc
IEEE80211_C_TXPMGT | /* tx power management */
IEEE80211_C_SHPREAMBLE | /* short preamble supported */
IEEE80211_C_SHSLOT | /* short slot time supported */
- IEEE80211_C_WEP; /* h/w WEP */
+ IEEE80211_C_WEP | /* h/w WEP */
+ IEEE80211_C_MONITOR; /* monitor mode supported */

/* set supported .11b and .11g rates */
ic->ic_sup_rates[IEEE80211_MODE_11B] = ieee80211_std_rateset_11b;

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:01 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com