Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> wrote: > All the chips supported so far have a TX page size of 128 bytes. > > Change the type of the page_size member of struct rtw_chip_info from u8 > to u16 in order to support RTL8821AU (page size of 256 bytes) and > RTL8812AU (page size of 512 bytes). Also change the types of several > related variables and function parameters from u8 to u16. > > The TX page size is used, among other things, to construct the beacon, > null data, QOS null data, and PS poll templates which are uploaded to > the chip's reserved page. Each template needs to be aligned on a > multiple of the TX page size. Power saving can't work if the TX page > size is wrong. > > Signed-off-by: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> Acked-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>