ath10k: reject 11b tx fragmentation configuration
authorMichal Kazior <michal.kazior@tieto.com>
Mon, 3 Aug 2015 09:16:43 +0000 (11:16 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 13 Aug 2015 11:13:55 +0000 (14:13 +0300)
commit92092fe528e79c9bd25784ca0ef341d5a1d1b642
treecd62df169d37112fc2c32a9c811323b5d095e741
parent4dca0e6edd14e0c8afa19c8ad90f711f1563b52e
ath10k: reject 11b tx fragmentation configuration

Even though there's a WMI enum for fragmentation
threshold no known firmware actually implements
it. Moreover it is not possible to rely frame
fragmentation to mac80211 because firmware clears
the "more fragments" bit in frame control making
it impossible for remote devices to reassemble
frames.

Hence implement a dummy callback just to say
fragmentation isn't supported. This effectively
prevents mac80211 from doing frame fragmentation
in software.

This fixes Tx becoming broken after setting
fragmentation threshold.

Fixes: 1010ba4c5d1c ("ath10k: unregister and remove frag_threshold callback")
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c