[OpenWrt-Devel] Problem with ath9k, mac80211 modules becoming permanent after couple of insmod/rmmod

2012-09-26 Thread abhinav narain
? (2) I am unable to uninstall the modified module( I think its modified one) as it becomes permanent. I don't see modprobe showing the path of the currently running module in Openwrt, is there some other way to find the path ? -Abhinav Narain

[OpenWrt-Devel] Usage of skb control buffer in ath9k mac layer

2012-04-01 Thread abhinav narain
hi, I have upgraded from trunk (aug built) to backfire. I was getting the rssi value, length of the mpdu captured etc from the driver to mac80211 using the control buffer. mac80211 version i was using before( compat-wireless-2011-08-26) had enough unused bytes to get all of this, but the

Re: [OpenWrt-Devel] finding module dependencies.

2012-03-21 Thread abhinav narain
thanks, I will try that. Abhinav On Tue, Mar 20, 2012 at 10:52 PM, Philip Prindeville philipp_s...@redfish-solutions.com wrote: On 3/20/12 5:56 PM, abhinav narain wrote: hi, I am modifying mac80211. but when I reboot the router, I get a set of erros which is due to module dependencies

[OpenWrt-Devel] finding module dependencies.

2012-03-20 Thread abhinav narain
hi, I am modifying mac80211. but when I reboot the router, I get a set of erros which is due to module dependencies. lsmod shows : ath9k as the only dependency and I am removing the module before inserting the modified mac80211 module. The only other way I to fix this is to remove all the

[OpenWrt-Devel] logging the number of retransmissions at mac layer

2012-02-28 Thread abhinav narain
hi, I am working on openwrt main trunk (frozen in ~aug) I am trying to get the stats about number of retransmissions at mac layer from ath9k drivers but I can't get where to look for.. The information is not given by debugfs. I looked at iw code which uses netlink interface, but couldn't actually

[OpenWrt-Devel] using systemtap

2012-02-20 Thread abhinav narain
hi, I can't find package for systemtap for OpenWrt, is it available ? I looked at trunk and Kamikaze but were not present in packages folder. I am working on a copy of trunk (~august build), currently. I couldn't find any docs related to it, any comments ? Abhinav

[OpenWrt-Devel] listening 80211 n beacons on netgear router

2011-12-02 Thread abhinav narain
hi, I have been running Openwrt router (netgear). I have used the command : iw phy phy1 set channel 40 ht40+/ht40-/ht20 But I have not been able to hear n beacons. Is it that tcpdump can't decipher n beacons ? I went through code and saw PRINT_HT_RATES and ieee80211_htrates[] are defined.

[OpenWrt-Devel] problem with phyX interface

2011-11-29 Thread abhinav narain
hi, At many times, I set the phy0 interface on the router and on running tcpdump or my sniffer on it, gives me the following error : phy0: That device is not up How should i get rid of this error, for final deployment of my tool, as the interface fails even after creation using iw command.

[OpenWrt-Devel] Problem connecting to ath9k driver using ioctl call

2011-11-17 Thread abhinav narain
hi, I make an ioctl call with SIOCGIWPRIV and it fails. I have included : #includelinux/wireless.h The pcap code makes the same call to the driver in enter_rfmon_mode_wext() defined in pcap-linux.c for sniffing. The compat-wireless-2011-08-10 driver has the header file in

[OpenWrt-Devel] calling ioctl with SIOCGIWPRIV parameter; sniffing on monitor mode

2011-11-16 Thread abhinav narain
hi, I am using netgear routers. model: WNDR3700v2 I want to set the wireless interface (ath9k) in monitor mode to sniff the traffic. I am doing the following : 1. Opening a raw socket socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)) 2. making the following ioctl call to connect to device. Device is

[OpenWrt-Devel] radiotap headers length

2011-11-16 Thread abhinav narain
hi, I am sniffing in monitor mode on a netgear WNDR3700v2 router. I am reading from a raw socket in monitor mode. But I cannot make sense of the data, as there are variable length radiotap headers, variable length mac headers. I found out these going through pcap code. 1. Can someone tell if

Re: [OpenWrt-Devel] calling ioctl with SIOCGIWPRIV parameter; sniffing on monitor mode

2011-11-16 Thread abhinav narain
hi, Ok. I will look into iw. I am wondering how does pcap sniff on Atheros driver then ? On Wed, Nov 16, 2011 at 1:55 PM, Jo-Philipp Wich x...@subsignal.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, SIOCGIWPRIV is part of the deprecated wext api which is not fully supported

[OpenWrt-Devel] modifying sk_buff

2011-11-11 Thread abhinav narain
hi, I am trying to add a header in driver ath9k. I am doing it by adding the header by using skb_put(..) and increment the skb-data pointer. Then adding the usual skb content after it by using skb_put(). I finally call netif_rx() to push the skb to upper layers, and can see a notification that it

Re: [OpenWrt-Devel] modifying sk_buff

2011-11-11 Thread abhinav narain
When I comment the call to ieee80211_rx_monitor() in ieee80211_rx() and recompile the driver, my router keeps rebooting. On Fri, Nov 11, 2011 at 8:56 PM, abhinav narain abhinavnarai...@gmail.comwrote: hi, I am trying to add a header in driver ath9k. I am doing it by adding the header

Re: [OpenWrt-Devel] printk() and browser

2011-11-08 Thread abhinav narain
The following errors (o/p of dmesg) iptable_raw:Unknow symbol xt_hook_link (err 0) iptable_raw:Unknow symbol ipt_alloc_initial_table (err 0) iptable_raw:Unknow symbol xt_hook_unlink (err 0) xt_NOTRACK: Unknow symbol xt_register_target (err 0) xtconntrack: Unknown symbol xt_register_match(err0)

[OpenWrt-Devel] setting the promiscuous mode for driver

2011-11-02 Thread abhinav narain
hi, I want to sniff all the packets from the network. I am setting sc-sc_ah-is_monitoring = true; in ath9k_start() but this gets set to false in in ath9k_config(..). using the flag : IEEE80211_CONF_CHANGE_MONITOR Both the functions are defined in main.c in

Re: [OpenWrt-Devel] monitor mode

2011-11-02 Thread abhinav narain
I want to set the monitor mode on in the driver programmatically as there are some other things i am doing for which the driver is required to be in the monitor mode. I wanted to be sure if (is_monitoring, defined in ath_hw) is the correct flag to be set. Is it right to set the *changed* variable

Re: [OpenWrt-Devel] monitor mode

2011-11-02 Thread abhinav narain
I am modifying data in skbuff structure, so it will be convenient for me to set the things in the driver itself than use Netlink. What do you think ? Abhinav On Wed, Nov 2, 2011 at 4:28 PM, Jo-Philipp Wich x...@subsignal.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Then simply do

[OpenWrt-Devel] monitor mode

2011-11-01 Thread abhinav narain
in iwconfig output. Shall i use them to create a raw socket and sniff on it ? Abhinav Narain ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] printk() and browser

2011-10-18 Thread abhinav narain
I am just doing opkg install ath9k_2.6.39.4+..ipk Do i need to install some other packages on which ath9k driver depends also Somewhere I read it mught be a symbol table issue. Any guesses might be useful. Please help. Abhinav On Mon, Oct 17, 2011 at 8:40 PM, abhinav narain abhinavnarai

Re: [OpenWrt-Devel] printk() and browser

2011-10-18 Thread abhinav narain
06:08:17 abhinav narain wrote: I am just doing opkg install ath9k_2.6.39.4+..ipk Do i need to install some other packages on which ath9k driver depends also Somewhere I read it mught be a symbol table issue. Any guesses might be useful. Please help . Your printk() slows down

Re: [OpenWrt-Devel] printk() and browser

2011-10-18 Thread abhinav narain
xt_register_match(err0) xtconntrack: Unknown symbol xt_unregister_match(err0) I don't understand why ? Abhinav On Tue, Oct 18, 2011 at 6:25 AM, abhinav narain abhinavnarai...@gmail.comwrote: but why is the unknown symbol error ? coming ... the browser is unable to connect ? pings are not working ? how

[OpenWrt-Devel] printk() and browser

2011-10-17 Thread abhinav narain
hi, I am modifying the driver for past few days and noticed something today. Though my modifications are seen on the command line, I have one thing going extremely worn i realized today. The vanilla installation of the firmware on the router is perfect. I am able to browse the internet, but when I

Re: [OpenWrt-Devel] printk() and browser

2011-10-17 Thread abhinav narain
) { printk(abhinav\n); ai++ ;} I think i have to do some macro unset or something else ? Can anyone please help... whoever is trying to patch the kernel Abhinav On Mon, Oct 17, 2011 at 6:38 PM, abhinav narain abhinavnarai...@gmail.comwrote: hi, I am modifying the driver for past few days

Re: [OpenWrt-Devel] how to apply driver patch to the kernel

2011-10-10 Thread abhinav narain
Ok. I have them as modules, not in one binary. So, this won't work i believe. But thanks for the information. Abhinav On Mon, Oct 10, 2011 at 1:25 AM, harish badrinath harishbadrin...@gmail.com wrote: Hello, @Harish : I am not sure how to trigger monolithic kernel, but i dont get any

Re: [OpenWrt-Devel] how to apply driver patch to the kernel

2011-10-10 Thread abhinav narain
, abhinav narain abhinavnarai...@gmail.com wrote: Ok. I have them as modules, not in one binary. So, this won't work i believe. But thanks for the information. Abhinav On Mon, Oct 10, 2011 at 1:25 AM, harish badrinath harishbadrin...@gmail.com wrote: Hello, @Harish : I am not sure how

Re: [OpenWrt-Devel] modifying source code in OpenWrt

2011-10-09 Thread abhinav narain
-wireless patches out of Trunk all day. On Fri, Oct 7, 2011 at 10:58 AM, abhinav narain abhinavnarai...@gmail.com wrote: When I modify the files in the following folder and make deliberate syntax errors and then do a make $make package/mac80211/{clean,compile} V=99 folder : openwrt/src

Re: [OpenWrt-Devel] modifying source code in OpenWrt

2011-10-09 Thread abhinav narain
On Sun, Oct 9, 2011 at 7:26 AM, Felix Fietkau n...@openwrt.org wrote: On 2011-10-09 10:49 AM, abhinav narain wrote: I am adding the following lines to the code : static void __exit ath9k_exit(void) { is_ath9k_unloaded = true; ath_ahb_exit(); ath_pci_exit

Re: [OpenWrt-Devel] how to apply driver patch to the kernel

2011-10-09 Thread abhinav narain
process... As i have to write and test actual code and it will be tedious to put things everytime in dl/ as tarball. Abhinav On Sun, Oct 9, 2011 at 2:31 AM, harish badrinath harishbadrin...@gmail.comwrote: On Sun, Oct 9, 2011 at 9:55 AM, abhinav narain abhinavnarai...@gmail.com wrote: hi

Re: [OpenWrt-Devel] how to apply driver patch to the kernel

2011-10-09 Thread abhinav narain
yes, already. On Sun, Oct 9, 2011 at 11:25 PM, Murat Sezgin sezginmu...@gmail.com wrote: Did you try to increase the printk debug level in run time? echo 8 /proc/sys/kernel/printk Murat On Oct 9, 2011, at 18:47, abhinav narain abhinavnarai...@gmail.com wrote: Hi, Jonas, Adam

[OpenWrt-Devel] no output of printk

2011-10-08 Thread abhinav narain
I have made a patch to just do a printk(KERN_INFO ... ); in ath9k_tasklet(). shall I use any other KERN_ALERT etc options instead ? But I don't see any output on stdout when I install the image on netgear router. It does not have anything in 'cat /var/log/message' also. Am I missing something ?

Re: [OpenWrt-Devel] how to apply driver patch to the kernel

2011-10-08 Thread abhinav narain
jonas.gorski+open...@gmail.com wrote: Hi, On 6 October 2011 20:55, abhinav narain abhinavnarai...@gmail.com wrote: hi, This is my first experience with writing a patch/using git. I need some specific answers to get it working mac80211 is actually a bit tricky since quilt doesn't work. I'd

[OpenWrt-Devel] modifying source code in OpenWrt

2011-10-07 Thread abhinav narain
When I modify the files in the following folder and make deliberate syntax errors and then do a make $make package/mac80211/{clean,compile} V=99 folder : openwrt/src/klatch/*build_dir*/*toolchain-mips_r2_gcc* -4.5-linaro_uClibc-0.9.32/linux-2.6.39.4/drivers/net/wireless/ath/ath9k I don't get

Re: [OpenWrt-Devel] modifying source code in OpenWrt

2011-10-07 Thread abhinav narain
your life much easier :) On Fri, Oct 7, 2011 at 10:58 AM, abhinav narain abhinavnarai...@gmail.com wrote: When I modify the files in the following folder and make deliberate syntax errors and then do a make $make package/mac80211/{clean,compile} V=99 folder : openwrt/src/klatch

[OpenWrt-Devel] how to apply driver patch to the kernel

2011-10-06 Thread abhinav narain
hi, This is my first experience with writing a patch/using git. I need some specific answers to get it working I have written a patch for ath9k driver using git. The git root directory where i initiated the project is compat-wireless-2011-08-10. I did a git diff 001-ath9k.patch and the patch

[OpenWrt-Devel] doubt on ath9k_rx_tasklet/ ath9k_tasklet

2011-10-06 Thread abhinav narain
hi, I am writing a patch for netgear router model : wndr3700v2 w/ atheros chipset. I am using the compat-wireless driver I have modified the ath9k_rx_tasklet to get some information from the rx_status structure. this is defined in htc_drv_txrx.c I am not sure this is the file I should modify

Re: [OpenWrt-Devel] how to apply driver patch to the kernel

2011-10-06 Thread abhinav narain
that are used in patch and also in userspace program to use the functionality added by patch PS : I have statements like following in patch: #include abc.h #ifdef GHI .. .. Abhinav On Thu, Oct 6, 2011 at 4:19 PM, Jonas Gorski jonas.gorski+open...@gmail.com wrote: Hi, On 6 October 2011 20:55, abhinav