diff options
author | Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com> | 2012-09-27 08:49:52 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-10-24 04:49:57 -0400 |
commit | 171fe76877d3d8071a901e64eb63eeee6c7760a2 (patch) | |
tree | 3a76fe85cc2e72d0a58fb120e5824d550a3f2205 /drivers/net/wireless/ath/ath6kl/usb.c | |
parent | 7ac25eacc6766617edaac69d928f431a9983ccf2 (diff) |
ath6kl: Fix mapping uplink endpoint for AR6004
AR6004(UB134) firmware supports only LP Endpoint, So map
all Access Categories to Low Priority endpoints. This fixes a WPA2
connection issue as the uplink(tx) endpoint is appropriately
mapped in sync with the firmware.
Tested-by: Ben Gray <ben.r.gray@gmail.com>
Reported-by: Ben Gray <ben.r.gray@gmail.com>
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/usb.c')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/usb.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/usb.c b/drivers/net/wireless/ath/ath6kl/usb.c index 2014fac42749..62bcc0d5bc23 100644 --- a/drivers/net/wireless/ath/ath6kl/usb.c +++ b/drivers/net/wireless/ath/ath6kl/usb.c | |||
@@ -805,7 +805,11 @@ static int ath6kl_usb_map_service_pipe(struct ath6kl *ar, u16 svc_id, | |||
805 | *dl_pipe = ATH6KL_USB_PIPE_RX_DATA; | 805 | *dl_pipe = ATH6KL_USB_PIPE_RX_DATA; |
806 | break; | 806 | break; |
807 | case WMI_DATA_VI_SVC: | 807 | case WMI_DATA_VI_SVC: |
808 | *ul_pipe = ATH6KL_USB_PIPE_TX_DATA_MP; | 808 | |
809 | if (ar->hw.flags & ATH6KL_HW_MAP_LP_ENDPOINT) | ||
810 | *ul_pipe = ATH6KL_USB_PIPE_TX_DATA_LP; | ||
811 | else | ||
812 | *ul_pipe = ATH6KL_USB_PIPE_TX_DATA_MP; | ||
809 | /* | 813 | /* |
810 | * Disable rxdata2 directly, it will be enabled | 814 | * Disable rxdata2 directly, it will be enabled |
811 | * if FW enable rxdata2 | 815 | * if FW enable rxdata2 |
@@ -813,7 +817,11 @@ static int ath6kl_usb_map_service_pipe(struct ath6kl *ar, u16 svc_id, | |||
813 | *dl_pipe = ATH6KL_USB_PIPE_RX_DATA; | 817 | *dl_pipe = ATH6KL_USB_PIPE_RX_DATA; |
814 | break; | 818 | break; |
815 | case WMI_DATA_VO_SVC: | 819 | case WMI_DATA_VO_SVC: |
816 | *ul_pipe = ATH6KL_USB_PIPE_TX_DATA_HP; | 820 | |
821 | if (ar->hw.flags & ATH6KL_HW_MAP_LP_ENDPOINT) | ||
822 | *ul_pipe = ATH6KL_USB_PIPE_TX_DATA_LP; | ||
823 | else | ||
824 | *ul_pipe = ATH6KL_USB_PIPE_TX_DATA_MP; | ||
817 | /* | 825 | /* |
818 | * Disable rxdata2 directly, it will be enabled | 826 | * Disable rxdata2 directly, it will be enabled |
819 | * if FW enable rxdata2 | 827 | * if FW enable rxdata2 |