[OpenWrt-Devel] wlan disabled and can't be enabled after defining a new function

2011-12-08 Thread mohammad baba
Hi, I had defined a new function in /trunk/build_dir/linux-ar71xx_generic/compat-wireless-2011-11-04/net/wireless/nl80211.c void show_freq ( u32 freq ) { printk(KERN_EMERG "we can access frequency value from status.c & Frequency =%d\n",freq); } and I called this function from /trunk/build_dir/lin

[OpenWrt-Devel] wdev ??

2011-12-05 Thread mohammad baba
Hi, I need to send wdev and rdev to a function when calling it. However, wdev can be got from *genl_info* as*info->user_ptr[1]->ieee80211_ptr * or from *struct sk_buff* as* skb->dev->ieee80211_ptr*. I use printk to print the value (address they point to) of them and got different addresses. Can yo

[OpenWrt-Devel] including a file from another directory

2011-12-02 Thread mohammad baba
Hi, I work with mac80211 package, and for my work I need to include * build_dir/linux-ar71xx_generic/compat-wireless-2011-10-05/net/wireless/nl80211.h * into * build_dir/linux-ar71xx_generic/compat-wireless-2011-10-05/net/mac80211/status.c *I wonder if I can include it like: #include "nl80211.h" or

[OpenWrt-Devel] channel assignment algorithm

2011-10-07 Thread mohammad baba
Hi, I want to develop a channel assignment algorithm depending on some parameters (such as retry times,...) using openwrt. I use Netgear WNDR3700 and Linksys WRT400N and I could build images for them based on Trunk codes. Where can I find such parameters and codes (channel assignment, retry count,