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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. |