003-Fix-3.10-build.patch 980 B

12345678910111213141516171819202122232425262728293031
  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. Signed-off-by: Reinhard Karcher <reinhard.karcher@gmx.net>
  6. Signed-off-by: Oliver Winker <oliver@oli1170.net>
  7. ---
  8. main.c | 7 +++++++
  9. 1 file changed, 7 insertions(+)
  10. --- a/main.c
  11. +++ b/main.c
  12. @@ -682,10 +682,17 @@ int acx_op_config(struct ieee80211_hw *h
  13. if (changed & IEEE80211_CONF_CHANGE_CHANNEL) {
  14. logf1(L_DEBUG, "IEEE80211_CONF_CHANGE_CHANNEL,"
  15. +#if CONFIG_ACX_MAC80211_VERSION >= KERNEL_VERSION(3, 10, 0)
  16. + "channel->hw_value=%i\n", conf->chandef.chan->hw_value);
  17. +
  18. + acx_set_channel(adev, conf->chandef.chan->hw_value,
  19. + conf->chandef.chan->center_freq);
  20. +#else
  21. "channel->hw_value=%i\n", conf->channel->hw_value);
  22. acx_set_channel(adev, conf->channel->hw_value,
  23. conf->channel->center_freq);
  24. +#endif
  25. changed_not_done &= ~IEEE80211_CONF_CHANGE_CHANNEL;
  26. }