git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
wl1251: configure hardware en-/decryption for monitor mode
[pandora-kernel.git]
/
drivers
/
net
/
wireless
/
wl1251
/
tx.c
diff --git
a/drivers/net/wireless/wl1251/tx.c
b/drivers/net/wireless/wl1251/tx.c
index
a02cc87
..
08baccf
100644
(file)
--- a/
drivers/net/wireless/wl1251/tx.c
+++ b/
drivers/net/wireless/wl1251/tx.c
@@
-287,6
+287,9
@@
int wl1251_tx_frame(struct wl1251 *wl, struct sk_buff *skb)
info = IEEE80211_SKB_CB(skb);
if (info->control.hw_key) {
+ if (unlikely(wl->monitor_present))
+ return -EINVAL;
+
idx = info->control.hw_key->hw_key_idx;
if (unlikely(wl->default_key != idx)) {
ret = wl1251_acx_default_key(wl, idx);