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

2012-09-26 Thread abhinav narain
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-

[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 mac8021

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 > erro

[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 module

Re: [OpenWrt-Devel] [ath9k-devel] logging the number of retransmissions at mac layer

2012-02-29 Thread abhinav narain
... Abhinav On Tue, Feb 28, 2012 at 9:42 PM, Sujith Manoharan wrote: > abhinav narain wrote: > > 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 > > c

[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] limited interface of mac80211 to drivers

2012-02-21 Thread abhinav narain
hi, I am working on ath9k device driver. I want to pass some driver data to the userspace the most crucial point is transferring skbuff from ath_rx_tasklet() to ieee80211_rx() using struct ath_hw. But there is no way to pass any extra information ... is there any void * variable where I can store

[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. Though

[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. Kindly

[OpenWrt-Devel] using phy0 for sniffing

2011-11-28 Thread abhinav narain
hi, I was initially handling the frame in userspace after reading from raw sockets. As I want only beacon frames, I had to use pcap to set a filter in kernel for efficient program. I was able to sniff on phy0 while using raw sockets, but when I do the same using pcap, I get the following error : *

[OpenWrt-Devel] fcs, phy_err, crc_err info in userspace

2011-11-26 Thread abhinav narain
hi, I am using ath9k device drriver. I wanted to get FCS value in userspace. It looks like radiotap header doesn't give it. How can I get it ? Also there are certain variables that kernel has: like crc err, phy err which I want in the userspace. How can I get them per packet ? I know cat /sys/ker

[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 : #include 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 compat../include/linux/wireless.h My ioct

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 wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > SIOCGIWPRIV is part of the deprecated wext api which is not fully > supported by ath9k. U

[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 Athe

[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

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 wrote: > hi, > I am trying to add a header in driver ath9k. > I am doing it by adding the header by using skb_pu

[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] 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) xtc

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 wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Then simply do the same nl802

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

[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 compat../drivers/net/wireless/ath/ath

[OpenWrt-Devel] monitor mode

2011-11-01 Thread abhinav narain
(in Monitor mode) interfaces 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
elli wrote: > On Tuesday 18 October 2011 06:26:29 abhinav narain wrote: > > As i said, the following errors shoot up on dmesg : > > iptable_raw:Unknow symbol xt_hook_link (err 0) > > iptable_raw:Unknow symbol ipt_alloc_initial_table (err 0) > > iptable_raw:Unknow symbol

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 wrote: > but why is the unknown symbol error ? coming ... > the browser is unable to connect ? > pings are not working ? > how el

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

2011-10-18 Thread abhinav narain
; > Please help> . > > Your printk() slows down the entire system and nothing is responsive? > > > > > Abhinav > > > > On Mon, Oct 17, 2011 at 8:40 PM, abhinav narain > > > > wrote: > > > I have figure the problem, but I don't

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 wrote: >

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

2011-10-17 Thread abhinav narain
ai==0) { 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 wrote: > hi, > I am modifying the driver for past few days and no

[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] how to apply driver patch to the kernel

2011-10-10 Thread abhinav narain
av On Tue, Oct 11, 2011 at 1:11 AM, harish badrinath wrote: > On Tue, Oct 11, 2011 at 3:55 AM, abhinav narain > wrote: > > I was interested in knowing do I have to change anything in makefiles if > I > > add another header file in the folder as a part of patch ? > > or is

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

2011-10-10 Thread abhinav narain
does not update the firmware image. Besides, using > whole firmware images is a slow process... why not use the kmod-ath9k > package (which is updated after you rebuild the package) and install it via > opkg? Built packages are located in your bin/ dir. > > > On Mon, Oct 10, 2011

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 wrote: > Hello, > > @Harish : > > I am not sure how to trigger monolithic kernel, but i dont get any output > of > > strings ..

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 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 > wrote: > > Hi, > Jonas, Ad

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

2011-10-09 Thread abhinav narain
g in the above 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 wrote: > On Sun, Oct 9, 2011 at 9:55 AM, abhinav narain > wrote: > > hi, > > your method

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 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; >>

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

2011-10-09 Thread abhinav narain
kage/mac80211/update > > Your patch will be there. I've been making compat-wireless patches out of > Trunk all day. > > On Fri, Oct 7, 2011 at 10:58 AM, abhinav narain > wrote: > >> When I modify the files in the following folder and make deliberate syntax >>

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

2011-10-08 Thread abhinav narain
: > Hi, > > On 6 October 2011 20:55, abhinav narain 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&

[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] modifying source code in OpenWrt

2011-10-07 Thread abhinav narain
ing quilt to do this will make your life much easier :) > > On Fri, Oct 7, 2011 at 10:58 AM, abhinav narain > wrote: > >> When I modify the files in the following folder and make deliberate syntax >> errors >> and then do a make >> $make package/mac80211/{cl

[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 an

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

2011-10-06 Thread abhinav narain
s 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 wrote: > Hi, > > On 6 October 2011 20:55,

[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 for

[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 f