[qca-nss-clients] GRE: Reset set_mac flag if next_dev is NULL

Signed-off-by: Suman Ghosh <sumaghos@codeaurora.org>
Change-Id: I5baae2a57ff109bc364a883c55214e995b0dd658
diff --git a/gre/nss_connmgr_gre.c b/gre/nss_connmgr_gre.c
index 3482a95..4797264 100644
--- a/gre/nss_connmgr_gre.c
+++ b/gre/nss_connmgr_gre.c
@@ -843,10 +843,11 @@
 	}
 
 	/*
-	 * Ignore set MAC flag for EoGRE
-	 * TODO: Find a better way to clear this flag
+	 * If next_dev is NULL, then the set MAC
+	 * flag can not be set. Because the packet
+	 * will be forwarded to ipv4_rx/ipv6_rx
 	 */
-	if (cfg->next_dev_outer) {
+	if (!cfg->next_dev) {
 		cmsg->flags &= ~NSS_GRE_CONFIG_SET_MAC;
 	}