acx-mac80211: fix build after recent mac80211 update and refresh patches
[15.05/openwrt.git] / package / kernel / acx-mac80211 / patches / 003-Fix-3.10-build.patch
1 From 1daf4bfdb072b08f3b4e412bbfa9645f88dc0a01 Mon Sep 17 00:00:00 2001
2 From: Oliver Winker <oliver@oli1170.net>
3 Date: Tue, 3 Sep 2013 20:36:36 +0200
4 Subject: [PATCH 3/3] Fix 3.10 build
5
6 Signed-off-by: Reinhard Karcher <reinhard.karcher@gmx.net>
7 Signed-off-by: Oliver Winker <oliver@oli1170.net>
8 ---
9  main.c | 7 +++++++
10  1 file changed, 7 insertions(+)
11
12 --- a/main.c
13 +++ b/main.c
14 @@ -682,10 +682,17 @@ int acx_op_config(struct ieee80211_hw *h
15  
16         if (changed & IEEE80211_CONF_CHANGE_CHANNEL) {
17                 logf1(L_DEBUG, "IEEE80211_CONF_CHANGE_CHANNEL,"
18 +#if CONFIG_ACX_MAC80211_VERSION >= KERNEL_VERSION(3, 10, 0)
19 +                       "channel->hw_value=%i\n", conf->chandef.chan->hw_value);
20 +
21 +               acx_set_channel(adev, conf->chandef.chan->hw_value,
22 +                               conf->chandef.chan->center_freq);
23 +#else
24                         "channel->hw_value=%i\n", conf->channel->hw_value);
25  
26                 acx_set_channel(adev, conf->channel->hw_value,
27                                 conf->channel->center_freq);
28 +#endif
29  
30                 changed_not_done &= ~IEEE80211_CONF_CHANGE_CHANNEL;
31         }