Skip to content
  • Ido Yariv's avatar
    wl12xx: Simplify TX blocks accounting · d2f4d47d
    Ido Yariv authored
    
    
    The total number of TX memory blocks may change when the dynamic memory
    option is enabled. The current implementation only tracks the available
    memory blocks, which over-complicates TX blocks accounting.
    
    By tracking the number of allocated blocks, calculation of the number of
    available blocks becomes simpler and cleaner. It simply equals the total
    number of TX memory blocks minus the allocated ones.
    
    Also, remove some unnecessary castings and use union member accesses
    instead.
    
    Signed-off-by: default avatarIdo Yariv <ido@wizery.com>
    Signed-off-by: default avatarArik Nemtsov <arik@wizery.com>
    Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
    d2f4d47d