diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-04-28 18:53:20 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2013-04-28 18:53:20 +0000 |
commit | 8a3a7fdf07837bdb5da515592c4c4e74187fd817 (patch) | |
tree | 93f41f27e38f5f274a94b2c698ee0d4df10b89f0 /package/acx-mac80211/patches | |
parent | 7dee0dae356e8041ae5a1e7fd8bfca7fd7b8d51e (diff) | |
download | upstream-8a3a7fdf07837bdb5da515592c4c4e74187fd817.tar.gz upstream-8a3a7fdf07837bdb5da515592c4c4e74187fd817.tar.bz2 upstream-8a3a7fdf07837bdb5da515592c4c4e74187fd817.zip |
acx-mac80211: make it compile with recent mac80211 again
SVN-Revision: 36481
Diffstat (limited to 'package/acx-mac80211/patches')
-rw-r--r-- | package/acx-mac80211/patches/003-add-changes-for-3-10.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/package/acx-mac80211/patches/003-add-changes-for-3-10.patch b/package/acx-mac80211/patches/003-add-changes-for-3-10.patch new file mode 100644 index 0000000000..18d4f9e394 --- /dev/null +++ b/package/acx-mac80211/patches/003-add-changes-for-3-10.patch @@ -0,0 +1,27 @@ +--- a/main.c ++++ b/main.c +@@ -681,6 +681,7 @@ int acx_op_config(struct ieee80211_hw *h + if (changed & IEEE80211_CONF_CHANGE_CHANNEL) { + changed_not_done &= ~IEEE80211_CONF_CHANGE_CHANNEL; + ++#if CONFIG_ACX_MAC80211_VERSION < KERNEL_VERSION(3, 10, 0) + logf1(L_DEBUG, "IEEE80211_CONF_CHANGE_CHANNEL, " + "channel->hw_value=%i\n", conf->channel->hw_value); + +@@ -689,6 +690,16 @@ int acx_op_config(struct ieee80211_hw *h + + acx_selectchannel(adev, conf->channel->hw_value, + conf->channel->center_freq); ++#else ++ logf1(L_DEBUG, "IEEE80211_CONF_CHANGE_CHANNEL, " ++ "channel->hw_value=%i\n", conf->chandef.chan->hw_value); ++ ++ if (conf->chandef.chan->hw_value == adev->channel) ++ goto change_channel_done; ++ ++ acx_selectchannel(adev, conf->chandef.chan->hw_value, ++ conf->chandef.chan->center_freq); ++#endif + } + change_channel_done: + if (changed_not_done) |