From: kang haiyang Date: Tue, 10 May 2011 08:22:46 +0800 Subject: [ath9k-devel] Error messgaes at boot up In-Reply-To: <949363.85738.qm@web137313.mail.in.yahoo.com> References: <949363.85738.qm@web137313.mail.in.yahoo.com> Message-ID: <4DC88556.7050208@dongniannetworks.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org maybe you should use EXPORT_SYMBOL(ieee80211_set_channel); On 05/10/2011 08:16 AM, Serene Gud wrote: > Hi all, > > The following are the changes that I have made to the kernel code: > > in net/mac80211/cfg.c: > I removed the key word 'static' from the function > ieee80211_set_channel > > in net/mac80211/ieee80211_i.h: > I added the prototype for the function ieee80211_set_channel; > > /* start*/ > int ieee80211_set_channel(struct wiphy *wiphy, > struct net_device *netdev, > struct ieee80211_channel *chan, > enum nl80211_channel_type channel_type); > /* end*/ > > > in net/mac80211/main.c: > Inside the ieee80211_hw_config function; I made a call to the > function in the following way: > /* start*/ > struct ieee80211_sub_if_data *sdata=NULL; > struct wiphy *wiphy; > struct net_device *netdev; > bool done; > > wiphy=local->hw.wiphy; > netdev = alloc_netdev_mq(sizeof(*sdata) + local->hw.vif_data_size, > "wlan%d", ether_setup, local->hw.queues); > chan=local->oper_channel; > channel_type=local->hw.conf.channel_type; > > done = ieee80211_set_channel(wiphy,netdev,chan,channel_type); > > if(!done) > printk("successful call to set_channel!!!!!!!!!!!!!!!\n"); > /* end */ > > > When I do the 'make' there is no error. > But when I reboot the system, it does not start and gives some errors > that are difficult to understand... > What am I doing wrong? > > > Please suggest, > Thanks! > > > _______________________________________________ > ath9k-devel mailing list > ath9k-devel at lists.ath9k.org > https://lists.ath9k.org/mailman/listinfo/ath9k-devel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20110510/90d1e68a/attachment.htm