On Nov 28, 2007 5:50 PM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > > > this does not happen with the ipw3945 driver but with the iwl3945 so its > > either something with this driver or mac80211. > > I just posted a patch for iwl4965 to make monitoring possible. Maybe you > can port that to iwl3945 and send me a packet dump with that patch > applied where the problem occurs. Or just do it without the patch, > should be good enough too. > > Just grap iw (from git.sipsolutions.net) and create a new monitor > interface: ./iw dev wmaster0 interface add moni0 type monitor > and then run tcpdump/wireshark on that. iw does not build here : cc -I/lib/modules/`uname -r`/build//include -Wall -I/lib/modules/`uname -r`/build/include -g -c -o iw.o iw.c iw.c:11:31: error: netlink/genl/genl.h: No such file or directory iw.c:12:33: error: netlink/genl/family.h: No such file or directory iw.c:13:33: error: netlink/genl/ctrl.h: No such file or directory iw.c: In function 'nl80211_init': iw.c:31: warning: implicit declaration of function 'genl_connect' iw.c:37: warning: implicit declaration of function 'genl_ctrl_alloc_cache' iw.c:37: warning: assignment makes pointer from integer without a cast iw.c:44: warning: implicit declaration of function 'genl_ctrl_search_by_name' iw.c:44: warning: assignment makes pointer from integer without a cast iw.c:54: warning: implicit declaration of function 'nl_cache_free' iw.c: In function 'nl80211_cleanup': iw.c:62: warning: implicit declaration of function 'genl_family_put' --- this headers do indeed not exist in /usr/include/netlink commenting them out results into: interface.c: In function 'handle_interface_add': interface.c:82: warning: implicit declaration of function 'nlmsg_alloc' interface.c:82: warning: assignment makes pointer from integer without a cast interface.c:88: warning: implicit declaration of function 'genlmsg_put' interface.c:88: warning: implicit declaration of function 'genl_family_get_id' interface.c:91: error: invalid lvalue in unary '&' interface.c:98: warning: passing argument 2 of 'nl_send_auto_complete' from incompatible pointer type interface.c: In function 'handle_interface_del': interface.c:122: warning: assignment makes pointer from integer without a cast interface.c:133: error: invalid lvalue in unary '&' interface.c:135: warning: passing argument 2 of 'nl_send_auto_complete' from incompatible pointer type make: *** [interface.o] Error 1 build tested on fedora 8 with libnl-devel-1.0-0.10.pre5.4 - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html