Skip to content

Commit 467d6ea

Browse files
D-Trivenirlubos
authored andcommitted
modules: wfa-qt: Use the DT API to get nRF70 Wi-Fi device
Use the DT API to get the default nRF70 Wi-Fi device that is configured in the board DTS files. Signed-off-by: Triveni Danda <[email protected]>
1 parent 951ea9b commit 467d6ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/wfa-qt/src/utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ int send_broadcast_arp(char *target_ip, int *send_count, int rate)
697697

698698
void set_netmask(char *ifname)
699699
{
700-
const struct device *dev = device_get_binding(ifname);
700+
const struct device *dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_wifi));
701701
struct net_if *iface = net_if_lookup_by_dev(dev);
702702
struct in_addr addr;
703703

0 commit comments

Comments
 (0)