Search Linux Wireless

Re: [PATCH] mac80211: use new cfg80211_inform_bss_frame_data() API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Johannes,

[auto build test ERROR on net/master -- if it's inappropriate base, please suggest rules for selecting the more suitable base]

url:    https://github.com/0day-ci/linux/commits/Johannes-Berg/mac80211-use-new-cfg80211_inform_bss_frame_data-API/20151013-173909
config: mips-jz4740 (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All error/warnings (new ones prefixed by >>):

   net/mac80211/scan.c: In function 'ieee80211_bss_info_update':
>> net/mac80211/scan.c:70:9: error: variable 'bss_meta' has initializer but incomplete type
     struct cfg80211_inform_bss bss_meta = {};
            ^
>> net/mac80211/scan.c:70:29: error: storage size of 'bss_meta' isn't known
     struct cfg80211_inform_bss bss_meta = {};
                                ^
>> net/mac80211/scan.c:85:9: error: implicit declaration of function 'cfg80211_inform_bss_frame_data' [-Werror=implicit-function-declaration]
     cbss = cfg80211_inform_bss_frame_data(local->hw.wiphy, &bss_meta,
            ^
>> net/mac80211/scan.c:70:29: warning: unused variable 'bss_meta' [-Wunused-variable]
     struct cfg80211_inform_bss bss_meta = {};
                                ^
   cc1: some warnings being treated as errors
--
   net/mac80211/ibss.c: In function '__ieee80211_sta_join_ibss':
>> net/mac80211/ibss.c:232:9: error: variable 'bss_meta' has initializer but incomplete type
     struct cfg80211_inform_bss bss_meta = {};
            ^
>> net/mac80211/ibss.c:232:29: error: storage size of 'bss_meta' isn't known
     struct cfg80211_inform_bss bss_meta = {};
                                ^
>> net/mac80211/ibss.c:388:8: error: implicit declaration of function 'cfg80211_inform_bss_frame_data' [-Werror=implicit-function-declaration]
     bss = cfg80211_inform_bss_frame_data(local->hw.wiphy, &bss_meta, mgmt,
           ^
>> net/mac80211/ibss.c:232:29: warning: unused variable 'bss_meta' [-Wunused-variable]
     struct cfg80211_inform_bss bss_meta = {};
                                ^
   cc1: some warnings being treated as errors

vim +/bss_meta +70 net/mac80211/scan.c

    64				  struct ieee80211_channel *channel)
    65	{
    66		bool beacon = ieee80211_is_beacon(mgmt->frame_control);
    67		struct cfg80211_bss *cbss;
    68		struct ieee80211_bss *bss;
    69		int clen, srlen;
  > 70		struct cfg80211_inform_bss bss_meta = {};
    71		bool signal_valid;
    72	
    73		if (ieee80211_hw_check(&local->hw, SIGNAL_DBM))
    74			bss_meta.signal = rx_status->signal * 100;
    75		else if (ieee80211_hw_check(&local->hw, SIGNAL_UNSPEC))
    76			bss_meta.signal = (rx_status->signal * 100) / local->hw.max_signal;
    77	
    78		bss_meta.scan_width = NL80211_BSS_CHAN_WIDTH_20;
    79		if (rx_status->flag & RX_FLAG_5MHZ)
    80			bss_meta.scan_width = NL80211_BSS_CHAN_WIDTH_5;
    81		if (rx_status->flag & RX_FLAG_10MHZ)
    82			bss_meta.scan_width = NL80211_BSS_CHAN_WIDTH_10;
    83	
    84		bss_meta.chan = channel;
  > 85		cbss = cfg80211_inform_bss_frame_data(local->hw.wiphy, &bss_meta,
    86						      mgmt, len, GFP_ATOMIC);
    87		if (!cbss)
    88			return NULL;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux