Skip to contentSkip to conversation

Error messgaes at boot up

ath9k-devel Serene Gud 2 participants 3 messages May 10, 2011

lore
Share & tools
lore

Serene Gud

author
#0 lore raw

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!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20110510/1611c001/attachment.htm

#1 lore raw

maybe you should use EXPORT_SYMBOL(ieee80211_set_channel);

Quoted 47 lines · Serene Gud

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?

Quoted 8 lines

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

author
#2 lore raw

--- On Mon, 5/9/11, kang haiyang <[email protected]> wrote:

  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:

EXPORT_SYMBOL in which file? Is it where I am making a call to the function?? -------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20110510/923fa8af/attachment-0001.htm