diff options
Diffstat (limited to 'drivers/net/wireless/ath/carl9170/cmd.h')
-rw-r--r-- | drivers/net/wireless/ath/carl9170/cmd.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/carl9170/cmd.h b/drivers/net/wireless/ath/carl9170/cmd.h index 0fc83d2336fd..f78728c38294 100644 --- a/drivers/net/wireless/ath/carl9170/cmd.h +++ b/drivers/net/wireless/ath/carl9170/cmd.h | |||
@@ -59,6 +59,16 @@ static inline int carl9170_flush_cab(struct ar9170 *ar, | |||
59 | return carl9170_bcn_ctrl(ar, vif_id, CARL9170_BCN_CTRL_DRAIN, 0, 0); | 59 | return carl9170_bcn_ctrl(ar, vif_id, CARL9170_BCN_CTRL_DRAIN, 0, 0); |
60 | } | 60 | } |
61 | 61 | ||
62 | static inline int carl9170_rx_filter(struct ar9170 *ar, | ||
63 | const unsigned int _rx_filter) | ||
64 | { | ||
65 | __le32 rx_filter = cpu_to_le32(_rx_filter); | ||
66 | |||
67 | return carl9170_exec_cmd(ar, CARL9170_CMD_RX_FILTER, | ||
68 | sizeof(rx_filter), (u8 *)&rx_filter, | ||
69 | 0, NULL); | ||
70 | } | ||
71 | |||
62 | struct carl9170_cmd *carl9170_cmd_buf(struct ar9170 *ar, | 72 | struct carl9170_cmd *carl9170_cmd_buf(struct ar9170 *ar, |
63 | const enum carl9170_cmd_oids cmd, const unsigned int len); | 73 | const enum carl9170_cmd_oids cmd, const unsigned int len); |
64 | 74 | ||