Add a new function to update ACM bit status for a queue for all access categories.
Signed-off-by: Aditya Shankar <aditya.shan...@microchip.com> --- drivers/staging/wilc1000/wilc_wlan.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index e323fd4..929166a 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c @@ -461,6 +461,14 @@ static inline u8 ac_change(struct wilc *wilc, u8 *ac) return 1; } +static inline void ac_acm_bit(struct wilc *wilc, u32 reg) +{ + wilc->txq[AC_BK_Q].acm = (reg & 0x00000002) >> BK_AC_ACM_STAT_POS; + wilc->txq[AC_BE_Q].acm = (reg & 0x00000100) >> BE_AC_ACM_STAT_POS; + wilc->txq[AC_VI_Q].acm = (reg & 0x00010000) >> VI_AC_ACM_STAT_POS; + wilc->txq[AC_VO_Q].acm = (reg & 0x01000000) >> VO_AC_ACM_STAT_POS; +} + int wilc_wlan_txq_add_net_pkt(struct net_device *dev, void *priv, u8 *buffer, u32 buffer_size, wilc_tx_complete_func_t func) { -- 2.7.4