]> git.baikalelectronics.ru Git - kernel.git/commit
wil6210: consider SNAP header in MTU calculations
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Tue, 23 Dec 2014 07:47:12 +0000 (09:47 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 15 Jan 2015 12:31:27 +0000 (14:31 +0200)
commit70355af3b48a1978562753c91785e443e82b22b4
treeb584cfc4a4225992ca9dc7fe2a27498e5d7ca05b
parentaa35e712ab85dfcbfa1551b2e8b338324d0c8282
wil6210: consider SNAP header in MTU calculations

When encapsulating 802.3 frames into the 802.11 ones,
8-byte SNAP header added to save ethtype. SNAP is part of
the frame body, thus should be counted in MSDU. So,
MTU = MSDU - SNAP

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/main.c
drivers/net/wireless/ath/wil6210/wil6210.h