diff options
author | Jonas Gorski <jogo@openwrt.org> | 2013-10-12 10:50:35 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2013-10-12 10:50:35 +0000 |
commit | 27c5bbf9930385609cc55ccb15cab19751d9a1b0 (patch) | |
tree | d091c20f4993b1181913d2e66b382f8ef8d4b638 /package/kernel/acx-mac80211/patches/003-Fix-3.10-build.patch | |
parent | 99a0dac7f37a99d68692ff5c89157e1fab146cba (diff) | |
download | upstream-27c5bbf9930385609cc55ccb15cab19751d9a1b0.tar.gz upstream-27c5bbf9930385609cc55ccb15cab19751d9a1b0.tar.bz2 upstream-27c5bbf9930385609cc55ccb15cab19751d9a1b0.zip |
acx-mac80211: update to latest version
Fixes compilation for linux 3.10.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38367 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/acx-mac80211/patches/003-Fix-3.10-build.patch')
-rw-r--r-- | package/kernel/acx-mac80211/patches/003-Fix-3.10-build.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/package/kernel/acx-mac80211/patches/003-Fix-3.10-build.patch b/package/kernel/acx-mac80211/patches/003-Fix-3.10-build.patch new file mode 100644 index 0000000000..a0636698c1 --- /dev/null +++ b/package/kernel/acx-mac80211/patches/003-Fix-3.10-build.patch @@ -0,0 +1,36 @@ +From 1daf4bfdb072b08f3b4e412bbfa9645f88dc0a01 Mon Sep 17 00:00:00 2001 +From: Oliver Winker <oliver@oli1170.net> +Date: Tue, 3 Sep 2013 20:36:36 +0200 +Subject: [PATCH 3/3] Fix 3.10 build + +Signed-off-by: Reinhard Karcher <reinhard.karcher@gmx.net> +Signed-off-by: Oliver Winker <oliver@oli1170.net> +--- + main.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/main.c b/main.c +index 3af6cd0..841592f 100644 +--- a/main.c ++++ b/main.c +@@ -682,10 +682,17 @@ int acx_op_config(struct ieee80211_hw *hw, u32 changed) + + if (changed & IEEE80211_CONF_CHANGE_CHANNEL) { + logf1(L_DEBUG, "IEEE80211_CONF_CHANGE_CHANNEL," ++#if CONFIG_ACX_MAC80211_VERSION >= KERNEL_VERSION(3, 10, 0) ++ "channel->hw_value=%i\n", conf->chandef.chan->hw_value); ++ ++ acx_set_channel(adev, conf->chandef.chan->hw_value, ++ conf->chandef.chan->center_freq); ++#else + "channel->hw_value=%i\n", conf->channel->hw_value); + + acx_set_channel(adev, conf->channel->hw_value, + conf->channel->center_freq); ++#endif + + changed_not_done &= ~IEEE80211_CONF_CHANGE_CHANNEL; + } +-- +1.8.4.rc1 + |