Преглед изворни кода

qcacmn: Allow all raw frames without any check

Allow all raw frames to the upper layer without checking
for port authorisation. All checks in raw mode has to be performed
by the controller in case of raw mode.

Change-Id: Ica6df24b359790fcadc9bb7bbb4d7b5084930170
Nandha Kishore Easwaran пре 4 година
родитељ
комит
a7c7531e90
2 измењених фајлова са 4 додато и 2 уклоњено
  1. 2 1
      dp/wifi3.0/be/dp_be_rx.c
  2. 2 1
      dp/wifi3.0/li/dp_li_rx.c

+ 2 - 1
dp/wifi3.0/be/dp_be_rx.c

@@ -625,7 +625,8 @@ done:
 		/*
 		 * Drop non-EAPOL frames from unauthorized peer.
 		 */
-		if (qdf_likely(peer) && qdf_unlikely(!peer->authorize)) {
+		if (qdf_likely(peer) && qdf_unlikely(!peer->authorize) &&
+		    !qdf_nbuf_is_raw_frame(nbuf)) {
 			bool is_eapol = qdf_nbuf_is_ipv4_eapol_pkt(nbuf) ||
 					qdf_nbuf_is_ipv4_wapi_pkt(nbuf);
 

+ 2 - 1
dp/wifi3.0/li/dp_li_rx.c

@@ -634,7 +634,8 @@ done:
 		/*
 		 * Drop non-EAPOL frames from unauthorized peer.
 		 */
-		if (qdf_likely(peer) && qdf_unlikely(!peer->authorize)) {
+		if (qdf_likely(peer) && qdf_unlikely(!peer->authorize) &&
+		    !qdf_nbuf_is_raw_frame(nbuf)) {
 			bool is_eapol = qdf_nbuf_is_ipv4_eapol_pkt(nbuf) ||
 					qdf_nbuf_is_ipv4_wapi_pkt(nbuf);