wlan: Update needed_headroom with LIBRA_HW_NEEDED_HEADROOM
While allocate network device, hard_header_len is set to ETH_HLEN(14) +
LIBRA_HW_NEEDED_HEADROOM(128). From the kernel versions greater than 4.4
onwards, while sending data packet, packet_snd(), kernel making sure that
data length must be at least 'hard_header_len', else drop the packet. Due
to this check, data packets having length less than 142 will be dropped.
To mitigate this issue, in driver, add LIBRA_HW_NEEDED_HEADROOM to
'needed_headroom' instead of updating hard_header_len. Now kernel
will ensure that data lenght must be at least ETH_HLEN(14).
Change-Id: If8aa52c8554988f8020132802830d581ee01bb31
CRs-Fixed: 2239833
1 file changed