Vladimir Kondratiev
a43b5142ad
fixup! wil6210: fix usage of print_hex_dump_debug
Use empty inline functions instead of empty #define. Fix for "unused variable"
as reported below:
tree: git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next.git master
head: 167bf96dd8
commit: 871d8c4bbb [45/62] wil6210: fix usage of print_hex_dump_debug
config: i386-allyesconfig
reproduce:
git checkout 871d8c4bbb
make ARCH=i386 allyesconfig
make ARCH=i386
All warnings:
drivers/net/wireless/ath/wil6210/wmi.c: In function 'wmi_evt_rx_mgmt':
>> drivers/net/wireless/ath/wil6210/wmi.c:341:10: warning: unused variable 'ie_len' [-Wunused-variable]
size_t ie_len = d_len - offsetof(struct ieee80211_mgmt,
^
>> drivers/net/wireless/ath/wil6210/wmi.c:340:13: warning: unused variable 'ie_buf' [-Wunused-variable]
const u8 *ie_buf = rx_mgmt_frame->u.beacon.variable;
^
vim +/ie_len +341 drivers/net/wireless/ath/wil6210/wmi.c
2be7d22f Vladimir Kondratiev 2012-12-20 334
2be7d22f Vladimir Kondratiev 2012-12-20 335 if (ieee80211_is_beacon(fc) || ieee80211_is_probe_resp(fc)) {
2be7d22f Vladimir Kondratiev 2012-12-20 336 struct cfg80211_bss *bss;
8eea944a Vladimir Kondratiev 2014-06-16 337 u64 tsf = le64_to_cpu(rx_mgmt_frame->u.beacon.timestamp);
8eea944a Vladimir Kondratiev 2014-06-16 338 u16 cap = le16_to_cpu(rx_mgmt_frame->u.beacon.capab_info);
8eea944a Vladimir Kondratiev 2014-06-16 339 u16 bi = le16_to_cpu(rx_mgmt_frame->u.beacon.beacon_int);
8eea944a Vladimir Kondratiev 2014-06-16 340 const u8 *ie_buf = rx_mgmt_frame->u.beacon.variable;
8eea944a Vladimir Kondratiev 2014-06-16 341 size_t ie_len = d_len - offsetof(struct ieee80211_mgmt,
8eea944a Vladimir Kondratiev 2014-06-16 342 u.beacon.variable);
8eea944a Vladimir Kondratiev 2014-06-16 343 wil_dbg_wmi(wil, "Capability info : 0x%04x\n", cap);
8eea944a Vladimir Kondratiev 2014-06-16 344 wil_dbg_wmi(wil, "TSF : 0x%016llx\n", tsf);
:::::: The code at line 341 was first introduced by commit
:::::: 8eea944af0 wil6210: print more info about BSS found
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2014-09-15 15:00:53 -04:00
..
2014-08-14 18:13:46 -06:00
2014-08-18 17:40:09 -04:00
2014-08-13 18:27:40 -06:00
2014-08-06 21:14:42 -07:00
2014-09-09 15:33:05 -04:00
2014-08-14 18:10:33 -06:00
2014-09-09 03:23:40 +02:00
2014-08-08 11:34:32 -07:00
2014-08-15 10:26:01 +05:30
2014-08-08 11:14:29 -07:00
2014-08-08 11:14:29 -07:00
2014-07-23 10:18:07 -07:00
2014-08-14 18:13:46 -06:00
2014-08-14 18:13:46 -06:00
2014-08-14 18:10:33 -06:00
2014-07-23 00:51:30 +02:00
2014-08-11 07:14:01 -07:00
2014-08-15 17:56:45 -06:00
2014-07-23 10:22:35 +09:00
2014-08-06 09:38:14 -07:00
2014-08-08 15:57:33 -07:00
2014-08-08 18:00:35 -07:00
2014-08-15 17:57:49 -06:00
2014-08-21 14:25:20 -07:00
2014-08-06 20:06:14 -07:00
2014-08-04 17:32:24 -07:00
2014-08-14 09:55:13 -06:00
2014-07-29 11:46:28 +03:00
2014-08-19 10:19:47 -05:00
2014-08-05 21:16:46 -07:00
2014-08-15 17:06:40 -04:00
2014-08-04 18:36:12 -07:00
2014-08-14 18:10:33 -06:00
2014-08-15 18:16:28 -06:00
2014-08-19 00:19:26 +02:00
2014-07-18 16:50:55 -07:00
2014-08-08 11:14:29 -07:00
2014-08-22 11:31:30 -07:00
2014-08-08 11:34:32 -07:00
2014-08-06 18:01:19 -07:00
2014-08-07 17:23:16 -07:00
2014-07-29 01:57:25 -07:00
2014-08-19 17:20:27 +10:00
2014-08-08 15:57:28 -07:00
2014-07-29 19:26:30 -05:00
2014-07-25 17:16:58 -04:00
2014-08-14 10:56:15 -06:00
2014-08-08 11:34:32 -07:00
2014-08-14 18:10:33 -06:00
2014-08-13 17:42:11 -06:00
2014-09-15 15:00:53 -04:00
2014-07-23 01:14:41 +02:00
2014-08-16 09:03:58 +01:00
2014-08-08 15:57:25 -07:00
2014-08-19 09:45:31 -05:00
2014-08-07 08:50:34 -07:00
2014-08-08 11:34:32 -07:00
2014-08-08 11:34:32 -07:00
2014-08-20 08:18:18 -07:00
2014-07-30 00:23:09 +02:00
2014-08-08 11:14:29 -07:00
2014-08-12 12:15:14 -06:00
2014-08-08 18:06:29 -07:00
2014-08-12 12:15:14 -06:00
2014-08-07 17:17:39 -07:00
2014-08-08 15:57:47 -07:00
2014-08-07 08:41:00 -07:00
2014-08-05 18:57:18 -07:00
2014-08-20 18:20:50 -05:00
2014-08-08 11:00:26 -07:00
2014-08-25 15:39:22 -04:00
2014-08-26 11:16:02 +02:00
2014-08-06 20:10:32 -07:00
2014-07-22 10:13:00 +08:00
2014-08-14 09:53:39 -06:00
2014-09-09 15:33:05 -04:00
2014-08-01 15:48:08 -07:00
2014-08-08 10:39:16 -06:00
2014-08-12 12:15:14 -06:00
2014-07-27 21:07:15 +09:30
2014-08-08 15:57:30 -07:00
2014-08-07 08:47:00 -07:00
2014-08-12 12:15:14 -06:00
2014-08-04 17:32:24 -07:00
2014-08-04 18:34:04 -07:00