]> Pileus Git - ~andy/linux/commit
ath10k: use workqueue to set WEP TX key
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 16 Oct 2013 12:44:45 +0000 (15:44 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 16 Oct 2013 12:44:45 +0000 (15:44 +0300)
commitcc4827b97b0a5fec66689c0e511a94e3dad490fc
tree494878e959067422475835cbcff94d240fc21fa3
parentd544943afa678ffe06de295b5420f060389edfc9
ath10k: use workqueue to set WEP TX key

Recent WMI/HTC changes made it possible for WMI
commands to sleep (if there's not enough HTC TX
credits to submit a command). TX path is in an
atomic context so calling WMI commands in it is
wrong.

This simply moves WEP key index update to a worker
and fixes the 'scheduling while atomic' bug.

This still leaves multiple WEP key handling laggy,
i.e. some frames may be TXed with an old/different
key (although recipient should still be able to RX
them).

kvalo: changed the title

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/mac.c