rtl8xxxu: Add TX page defines for 8723b
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 19 Aug 2016 21:46:27 +0000 (17:46 -0400)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 3 Sep 2016 16:57:13 +0000 (19:57 +0300)
This switches the 8723b driver to use the new
rtl8xxxu_init_queue_reserved_page() function.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c

index 4341d56805f8d3822c6d5be9668ffd7e49a772e8..da4f1487e2929821444119752b6d22d7191ca36f 100644 (file)
@@ -43,6 +43,7 @@
 
 #define TX_TOTAL_PAGE_NUM              0xf8
 #define TX_TOTAL_PAGE_NUM_8192E                0xf3
+#define TX_TOTAL_PAGE_NUM_8723B                0xf7
 /* (HPQ + LPQ + NPQ + PUBQ) = TX_TOTAL_PAGE_NUM */
 #define TX_PAGE_NUM_PUBQ               0xe7
 #define TX_PAGE_NUM_HI_PQ              0x0c
 #define TX_PAGE_NUM_LO_PQ_8192E                0x0c
 #define TX_PAGE_NUM_NORM_PQ_8192E      0x00
 
+#define TX_PAGE_NUM_PUBQ_8723B         0xe7
+#define TX_PAGE_NUM_HI_PQ_8723B                0x0c
+#define TX_PAGE_NUM_LO_PQ_8723B                0x02
+#define TX_PAGE_NUM_NORM_PQ_8723B      0x02
+
 #define RTL_FW_PAGE_SIZE               4096
 #define RTL8XXXU_FIRMWARE_POLL_MAX     1000
 
index 9d45afb0e3fd79180e49f807c8ae698f49ff3dd8..c1323f0851f74d95455af15867e8a3c07f6da1fb 100644 (file)
@@ -1674,4 +1674,8 @@ struct rtl8xxxu_fileops rtl8723bu_fops = {
        .pbp_rx = PBP_PAGE_SIZE_256,
        .pbp_tx = PBP_PAGE_SIZE_256,
        .mactable = rtl8723b_mac_init_table,
+       .total_page_num = TX_TOTAL_PAGE_NUM_8723B,
+       .page_num_hi = TX_PAGE_NUM_HI_PQ_8723B,
+       .page_num_lo = TX_PAGE_NUM_LO_PQ_8723B,
+       .page_num_norm = TX_PAGE_NUM_NORM_PQ_8723B,
 };