Skip to content

Commit 197757f

Browse files
mike-scottgalak
authored andcommitted
drivers: modem: wnc14a2a: correct IPv6 SRC and DST
Changes in commit 854045c ("drivers/modem: Switch wncm14a2a driver to new net_pkt API") moved WNC-M14A2A modem driver to new net_pkt APIs. As part of these changes, the values for source and destination passed into net_ipv6_create() were reversed. Let's correct them. Signed-off-by: Michael Scott <[email protected]>
1 parent 8960cf4 commit 197757f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/modem/wncm14a2a.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ static int pkt_setup_ip_data(struct net_pkt *pkt,
466466
if (net_pkt_family(pkt) == AF_INET6) {
467467
if (net_ipv6_create_new(
468468
pkt,
469-
&((struct sockaddr_in6 *)&sock->src)->sin6_addr,
470-
&((struct sockaddr_in6 *)&sock->dst)->sin6_addr)) {
469+
&((struct sockaddr_in6 *)&sock->dst)->sin6_addr,
470+
&((struct sockaddr_in6 *)&sock->src)->sin6_addr)) {
471471
return -1;
472472
}
473473

0 commit comments

Comments
 (0)