diff --git a/drivers/wireless/gs2200m.c b/drivers/wireless/gs2200m.c index 6364c9f201..e0a5bc9ec6 100644 --- a/drivers/wireless/gs2200m.c +++ b/drivers/wireless/gs2200m.c @@ -666,6 +666,12 @@ errout: memcpy(&msg->addr, &pkt_dat->addr, sizeof(pkt_dat->addr)); + /* Set the address family + * NOTE: gs2200m only supports IPv4 + */ + + msg->addr.sin_family = AF_INET; + /* In udp case, treat the packet separately */ ret = false;