projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3235427
)
mac80211: fix warning: unused variable ifsta
author
Tomas Winkler
<
[email protected]
>
Tue, 1 Jul 2008 07:44:50 +0000
(10:44 +0300)
committer
John W. Linville
<
[email protected]
>
Tue, 8 Jul 2008 14:21:35 +0000
(10:21 -0400)
This patch fixes warning unused variable ifsta
when compiling without CONFIG_MAC80211_VERBOSE_DEBUG
Signed-off-by: Tomas Winkler <
[email protected]
>
Acked-by: Johannes Berg <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
net/mac80211/mlme.c
patch
|
blob
|
history
diff --git
a/net/mac80211/mlme.c
b/net/mac80211/mlme.c
index e080482b63cd93522412180354839f404d89b3cd..2a927089f4db62ce98dd58c687f6e797c4bb7f43 100644
(file)
--- a/
net/mac80211/mlme.c
+++ b/
net/mac80211/mlme.c
@@
-366,8
+366,10
@@
static u32 ieee80211_handle_protect_preamb(struct ieee80211_sub_if_data *sdata,
bool use_short_preamble)
{
struct ieee80211_bss_conf *bss_conf = &sdata->bss_conf;
+#ifdef CONFIG_MAC80211_VERBOSE_DEBUG
struct ieee80211_if_sta *ifsta = &sdata->u.sta;
DECLARE_MAC_BUF(mac);
+#endif
u32 changed = 0;
if (use_protection != bss_conf->use_cts_prot) {