linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pynl80211 works
@ 2007-02-22 12:43 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2007-02-22 12:43 UTC (permalink / raw)
  To: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 1108 bytes --]

you obviously need the nl80211 hookup patch and pynl80211 at after or at
commit e99894da4ba56e0a493cc9e76d20bab8e3b0a96f but then watch:

# ip link
[indizes 1, 2, 3, 6, 17 snipped]

# ./wificonf.py add_virtual_interface 0 moni0 monitor
Success

# ip link
[indizes 1, 2, 3, 6, 17 snipped]
40: moni0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
    link/[802] 00:11:24:xx:xx:xx brd ff:ff:ff:ff:ff:ff

# ./wificonf.py del_virtual_interface 0 moni0
Success

# ip link
[indizes 1, 2, 3, 6, 17 snipped]

# echo "Yes, it works! :D"
Yes, it works! :D


Oh and if you do get errors:
$ ./wificonf.py add_virtual_interface 0 abc monitor
Traceback (most recent call last):
  File "./wificonf.py", line 210, in ?
    exit(exec_cmd(items['CMD'][argv[1]], argv[2:]))
  File "./wificonf.py", line 186, in exec_cmd
    m = conn.recv()
  File "/home/johannes/Projects/cfg80211/tool/netlink.py", line 145, in
recv
    raise OSError("Netlink error: %s (%d)"%(os.strerror(errno),errno))
OSError: Netlink error: Operation not permitted (1)


Not the nicest error reporting but hey.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-22 13:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-22 12:43 pynl80211 works Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).