summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorJohn W. Linville2014-05-02 19:47:50 +0200
committerJohn W. Linville2014-05-02 19:47:50 +0200
commit406a94d7fae94a893c3afb9c2d18c83124d3cd9b (patch)
treec81f4de219ff9309a3f8f60c7855a620b8598ef4 /drivers/staging
parenthyperv: Enable sendbuf mechanism on the send path (diff)
parentrsi: Changing opcode for sta mode according to changes in firmware (diff)
downloadkernel-qcow2-linux-406a94d7fae94a893c3afb9c2d18c83124d3cd9b.tar.gz
kernel-qcow2-linux-406a94d7fae94a893c3afb9c2d18c83124d3cd9b.tar.xz
kernel-qcow2-linux-406a94d7fae94a893c3afb9c2d18c83124d3cd9b.zip
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/rtl8821ae/core.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/staging/rtl8821ae/core.c b/drivers/staging/rtl8821ae/core.c
index ff3139b6da65..63ae2d1997d3 100644
--- a/drivers/staging/rtl8821ae/core.c
+++ b/drivers/staging/rtl8821ae/core.c
@@ -1414,23 +1414,15 @@ static void rtl_op_rfkill_poll(struct ieee80211_hw *hw)
* before switch channel or power save, or tx buffer packet
* maybe send after offchannel or rf sleep, this may cause
* dis-association by AP */
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0))
-static void rtl_op_flush(struct ieee80211_hw *hw, u32 queues, bool drop)
+static void rtl_op_flush(struct ieee80211_hw *hw,
+ struct ieee80211_vif *vif,
+ u32 queues, bool drop)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
if (rtlpriv->intf_ops->flush)
rtlpriv->intf_ops->flush(hw, queues, drop);
}
-#else
-static void rtl_op_flush(struct ieee80211_hw *hw, bool drop)
-{
- struct rtl_priv *rtlpriv = rtl_priv(hw);
-
- if (rtlpriv->intf_ops->flush)
- rtlpriv->intf_ops->flush(hw, drop);
-}
-#endif
const struct ieee80211_ops rtl_ops = {
.start = rtl_op_start,