mac80211: add a HW flag for supporting HW TX fragmentation
authorSara Sharon <sara.sharon@intel.com>
Tue, 18 Oct 2016 20:12:11 +0000 (23:12 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Oct 2016 10:12:44 +0000 (12:12 +0200)
commitf3fe4e93dd6346c01fd4070ae02ec746fbae73bb
tree3ab6bd9fe32aec5bbc380a6a3ba250069b1131a1
parent0aa419ec6e7b98d485f6c66a62a90965eda3c1bb
mac80211: add a HW flag for supporting HW TX fragmentation

Currently mac80211 determines whether HW does fragmentation
by checking whether the set_frag_threshold callback is set
or not.
However, some drivers may want to set the HW fragmentation
capability depending on HW generation.
Allow this by checking a HW flag instead of checking the
callback.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
[added the flag to ath10k and wlcore]
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ti/wlcore/main.c
include/net/mac80211.h
net/mac80211/debugfs.c
net/mac80211/main.c
net/mac80211/tx.c
net/mac80211/wpa.c