CHROMIUM: ath10k: add a knob to toggle aggregation on per peer basis

This patch introuduces a debugfs entry to modify the max number of mpdus
in an ampdu for the connected stations. The acceptable values are from 0 to
64. Setting the value of ampdu subframe size to 0 or 1 means you are
disabling the aggregation for the station.

Usage:

localhost ~ # echo 0 > /sys/kernel/debug/ieee80211/phy1/netdev\:wlan-5000mhz/stations/xx:xx:xx:xx:xx:xx/ampdu_subframe_count
localhost ~ # echo 63 > /sys/kernel/debug/ieee80211/phy1/netdev\:wlan-5000mhz/stations/xx:xx:xx:xx:xx:xx/ampdu_subframe_count

BUG=b:35580227
TEST=Tested with FW that adds the support to toggle aggregation on per
peer basis. noticed the changes are taking into effor as sent by user

Change-Id: I1d351de8844949c921c014a924f64bf0235774d5
Signed-off-by: Ashok Raj Nagarajan <arnagara@codeaurora.org>
Reviewed-on: https://chromium-review.googlesource.com/722860
Commit-Ready: Ratheesh S P <ratheesh.sp@globaledgesoft.com>
Tested-by: Ratheesh S P <ratheesh.sp@globaledgesoft.com>
Reviewed-by: Srinivasa duvvuri <sduvvuri@google.com>
3 files changed