Skip to content

Commit a061450

Browse files
committed
drivers: net: ethernet: change ETHERNET_LINK_*BASE_T
change ETHERNET_LINK_*BASE_T to ETHERNET_LINK_*BASE. Signed-off-by: Fin Maaß <[email protected]>
1 parent 0d50adc commit a061450

40 files changed

+76
-81
lines changed

doc/connectivity/networking/api/8021Qav.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ also priority queues ``ETHERNET_PRIORITY_QUEUES`` need to be supported.
2828
ARG_UNUSED(dev);
2929
3030
return ETHERNET_QAV | ETHERNET_PRIORITY_QUEUES |
31-
ETHERNET_HW_VLAN | ETHERNET_LINK_10BASE_T |
32-
ETHERNET_LINK_100BASE_T;
31+
ETHERNET_HW_VLAN | ETHERNET_LINK_10BASE |
32+
ETHERNET_LINK_100BASE;
3333
}
3434
3535
See ``sam-e70-xplained`` board Ethernet driver

drivers/ethernet/dsa/dsa_ksz8xxx.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,8 @@ static enum ethernet_hw_caps dsa_port_get_capabilities(const struct device *dev)
11141114
{
11151115
ARG_UNUSED(dev);
11161116

1117-
return ETHERNET_DSA_SLAVE_PORT | ETHERNET_LINK_10BASE_T |
1118-
ETHERNET_LINK_100BASE_T;
1117+
return ETHERNET_DSA_SLAVE_PORT | ETHERNET_LINK_10BASE |
1118+
ETHERNET_LINK_100BASE;
11191119
}
11201120

11211121
const struct ethernet_api dsa_eth_api_funcs = {

drivers/ethernet/dwc_xgmac/eth_dwc_xgmac.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,7 @@ static enum ethernet_hw_caps eth_dwc_xgmac_get_capabilities(const struct device
17281728
ARG_UNUSED(dev);
17291729
enum ethernet_hw_caps caps = (enum ethernet_hw_caps)0;
17301730

1731-
caps = (ETHERNET_LINK_1000BASE_T | ETHERNET_LINK_100BASE_T | ETHERNET_LINK_10BASE_T |
1731+
caps = (ETHERNET_LINK_1000BASE | ETHERNET_LINK_100BASE | ETHERNET_LINK_10BASE |
17321732
ETHERNET_AUTO_NEGOTIATION_SET | ETHERNET_DUPLEX_SET);
17331733

17341734
#ifdef CONFIG_ETH_DWC_XGMAC_RX_CS_OFFLOAD

drivers/ethernet/eth_adin2111.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ static void adin2111_port_iface_init(struct net_if *iface)
12171217
static enum ethernet_hw_caps adin2111_port_get_capabilities(const struct device *dev)
12181218
{
12191219
ARG_UNUSED(dev);
1220-
return ETHERNET_LINK_10BASE_T |
1220+
return ETHERNET_LINK_10BASE |
12211221
ETHERNET_HW_FILTERING
12221222
#if defined(CONFIG_NET_LLDP)
12231223
| ETHERNET_LLDP

drivers/ethernet/eth_cyclonev.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,11 @@ static enum ethernet_hw_caps eth_cyclonev_caps(const struct device *dev)
366366
enum ethernet_hw_caps caps = 0;
367367

368368
if (p->feature & EMAC_DMA_HW_FEATURE_MIISEL) {
369-
caps |= ETHERNET_LINK_10BASE_T;
370-
caps |= ETHERNET_LINK_100BASE_T;
369+
caps |= ETHERNET_LINK_10BASE;
370+
caps |= ETHERNET_LINK_100BASE;
371371
}
372372
if (p->feature & EMAC_DMA_HW_FEATURE_GMIISEL) {
373-
caps |= ETHERNET_LINK_1000BASE_T;
373+
caps |= ETHERNET_LINK_1000BASE;
374374
}
375375
if (p->feature & EMAC_DMA_HW_FEATURE_RXTYP2COE) {
376376
caps |= ETHERNET_HW_RX_CHKSUM_OFFLOAD;

drivers/ethernet/eth_dwmac.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ static enum ethernet_hw_caps dwmac_caps(const struct device *dev)
102102
enum ethernet_hw_caps caps = 0;
103103

104104
if (p->feature0 & MAC_HW_FEATURE0_GMIISEL) {
105-
caps |= ETHERNET_LINK_1000BASE_T;
105+
caps |= ETHERNET_LINK_1000BASE;
106106
}
107107

108108
if (p->feature0 & MAC_HW_FEATURE0_MIISEL) {
109-
caps |= ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T;
109+
caps |= ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE;
110110
}
111111

112112
caps |= ETHERNET_PROMISC_MODE;

drivers/ethernet/eth_e1000.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ static enum ethernet_hw_caps e1000_caps(const struct device *dev)
8282
#if defined(CONFIG_ETH_E1000_PTP_CLOCK)
8383
ETHERNET_PTP |
8484
#endif
85-
ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T |
86-
ETHERNET_LINK_1000BASE_T |
85+
ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE |
86+
ETHERNET_LINK_1000BASE |
8787
/* The driver does not really support TXTIME atm but mark
8888
* it to support it so that we can test the txtime sample.
8989
*/

drivers/ethernet/eth_enc28j60.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ static enum ethernet_hw_caps eth_enc28j60_get_capabilities(const struct device *
750750
{
751751
ARG_UNUSED(dev);
752752

753-
return ETHERNET_LINK_10BASE_T
753+
return ETHERNET_LINK_10BASE
754754
#if defined(CONFIG_NET_VLAN)
755755
| ETHERNET_HW_VLAN
756756
#endif

drivers/ethernet/eth_enc424j600.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ static enum ethernet_hw_caps enc424j600_get_capabilities(const struct device *de
553553
{
554554
ARG_UNUSED(dev);
555555

556-
return ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T;
556+
return ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE;
557557
}
558558

559559
static int enc424j600_set_config(const struct device *dev,

drivers/ethernet/eth_esp32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static const struct device *eth_esp32_phy_dev = DEVICE_DT_GET(
5656
static enum ethernet_hw_caps eth_esp32_caps(const struct device *dev)
5757
{
5858
ARG_UNUSED(dev);
59-
return ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T;
59+
return ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE;
6060
}
6161

6262
static int eth_esp32_set_config(const struct device *dev,

drivers/ethernet/eth_gecko.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,8 @@ static enum ethernet_hw_caps eth_gecko_get_capabilities(const struct device *dev
631631
{
632632
ARG_UNUSED(dev);
633633

634-
return (ETHERNET_AUTO_NEGOTIATION_SET | ETHERNET_LINK_10BASE_T |
635-
ETHERNET_LINK_100BASE_T | ETHERNET_DUPLEX_SET);
634+
return (ETHERNET_AUTO_NEGOTIATION_SET | ETHERNET_LINK_10BASE |
635+
ETHERNET_LINK_100BASE | ETHERNET_DUPLEX_SET);
636636
}
637637

638638
static const struct ethernet_api eth_api = {

drivers/ethernet/eth_ivshmem.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static int eth_ivshmem_stop(const struct device *dev)
8888
static enum ethernet_hw_caps eth_ivshmem_caps(const struct device *dev)
8989
{
9090
ARG_UNUSED(dev);
91-
return ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T | ETHERNET_LINK_1000BASE_T;
91+
return ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE | ETHERNET_LINK_1000BASE;
9292
}
9393

9494
static int eth_ivshmem_send(const struct device *dev, struct net_pkt *pkt)

drivers/ethernet/eth_lan865x.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static void lan865x_iface_init(struct net_if *iface)
112112
static enum ethernet_hw_caps lan865x_port_get_capabilities(const struct device *dev)
113113
{
114114
ARG_UNUSED(dev);
115-
return ETHERNET_LINK_10BASE_T | ETHERNET_PROMISC_MODE;
115+
return ETHERNET_LINK_10BASE | ETHERNET_PROMISC_MODE;
116116
}
117117

118118
static int lan865x_gpio_reset(const struct device *dev);

drivers/ethernet/eth_lan9250.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ static enum ethernet_hw_caps lan9250_get_capabilities(const struct device *dev)
615615
{
616616
ARG_UNUSED(dev);
617617

618-
return ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T;
618+
return ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE;
619619
}
620620

621621
static void lan9250_iface_init(struct net_if *iface)

drivers/ethernet/eth_litex_liteeth.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static enum ethernet_hw_caps eth_caps(const struct device *dev)
294294
#ifdef CONFIG_NET_VLAN
295295
ETHERNET_HW_VLAN |
296296
#endif
297-
ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T | ETHERNET_LINK_1000BASE_T;
297+
ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE | ETHERNET_LINK_1000BASE;
298298
}
299299

300300
static const struct ethernet_api eth_api = {

drivers/ethernet/eth_numaker.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,9 @@ static enum ethernet_hw_caps numaker_eth_get_cap(const struct device *dev)
552552
{
553553
ARG_UNUSED(dev);
554554
#if defined(NU_USING_HW_CHECKSUM)
555-
return ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T | ETHERNET_HW_RX_CHKSUM_OFFLOAD;
555+
return ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE | ETHERNET_HW_RX_CHKSUM_OFFLOAD;
556556
#else
557-
return ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T;
557+
return ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE;
558558
#endif
559559
}
560560

drivers/ethernet/eth_nxp_enet.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ static enum ethernet_hw_caps eth_nxp_enet_get_capabilities(const struct device *
252252
#endif
253253
enum ethernet_hw_caps caps;
254254

255-
caps = ETHERNET_LINK_10BASE_T |
255+
caps = ETHERNET_LINK_10BASE |
256256
ETHERNET_HW_FILTERING |
257257
#if defined(CONFIG_NET_VLAN)
258258
ETHERNET_HW_VLAN |
@@ -267,11 +267,11 @@ static enum ethernet_hw_caps eth_nxp_enet_get_capabilities(const struct device *
267267
ETHERNET_HW_TX_CHKSUM_OFFLOAD |
268268
ETHERNET_HW_RX_CHKSUM_OFFLOAD |
269269
#endif
270-
ETHERNET_LINK_100BASE_T;
270+
ETHERNET_LINK_100BASE;
271271

272272
if (COND_CODE_1(IS_ENABLED(CONFIG_ETH_NXP_ENET_1G),
273273
(config->phy_mode == NXP_ENET_RGMII_MODE), (0))) {
274-
caps |= ETHERNET_LINK_1000BASE_T;
274+
caps |= ETHERNET_LINK_1000BASE;
275275
}
276276

277277
return caps;

drivers/ethernet/eth_nxp_enet_qos/eth_nxp_enet_qos_mac.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static void tx_dma_done(struct k_work *work)
161161

162162
static enum ethernet_hw_caps eth_nxp_enet_qos_get_capabilities(const struct device *dev)
163163
{
164-
return ETHERNET_LINK_100BASE_T | ETHERNET_LINK_10BASE_T | ENET_MAC_PACKET_FILTER_PM_MASK;
164+
return ETHERNET_LINK_100BASE | ETHERNET_LINK_10BASE | ENET_MAC_PACKET_FILTER_PM_MASK;
165165
}
166166

167167
static void eth_nxp_enet_qos_rx(struct k_work *work)

drivers/ethernet/eth_nxp_s32_gmac.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -559,10 +559,10 @@ static enum ethernet_hw_caps eth_nxp_s32_get_capabilities(const struct device *d
559559
{
560560
ARG_UNUSED(dev);
561561

562-
return (ETHERNET_LINK_10BASE_T
563-
| ETHERNET_LINK_100BASE_T
562+
return (ETHERNET_LINK_10BASE
563+
| ETHERNET_LINK_100BASE
564564
#if (FEATURE_GMAC_RGMII_EN == 1U)
565-
| ETHERNET_LINK_1000BASE_T
565+
| ETHERNET_LINK_1000BASE
566566
#endif
567567
| ETHERNET_DUPLEX_SET
568568
| ETHERNET_HW_TX_CHKSUM_OFFLOAD

drivers/ethernet/eth_nxp_s32_netc.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@ enum ethernet_hw_caps nxp_s32_eth_get_capabilities(const struct device *dev)
267267
{
268268
ARG_UNUSED(dev);
269269

270-
return (ETHERNET_LINK_10BASE_T
271-
| ETHERNET_LINK_100BASE_T
272-
| ETHERNET_LINK_1000BASE_T
270+
return (ETHERNET_LINK_10BASE
271+
| ETHERNET_LINK_100BASE
272+
| ETHERNET_LINK_1000BASE
273273
| ETHERNET_HW_RX_CHKSUM_OFFLOAD
274274
| ETHERNET_HW_FILTERING
275275
#if defined(CONFIG_NET_VLAN)

drivers/ethernet/eth_renesas_ra.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static enum ethernet_hw_caps renesas_ra_eth_get_capabilities(const struct device
134134
{
135135
ARG_UNUSED(dev);
136136

137-
return ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T;
137+
return ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE;
138138
}
139139

140140
void renesas_ra_eth_callback(ether_callback_args_t *p_args)

drivers/ethernet/eth_sam_gmac.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,7 @@ static enum ethernet_hw_caps eth_sam_gmac_get_capabilities(const struct device *
19201920
{
19211921
ARG_UNUSED(dev);
19221922

1923-
return ETHERNET_LINK_10BASE_T |
1923+
return ETHERNET_LINK_10BASE |
19241924
#if defined(CONFIG_NET_VLAN)
19251925
ETHERNET_HW_VLAN |
19261926
#endif
@@ -1931,7 +1931,7 @@ static enum ethernet_hw_caps eth_sam_gmac_get_capabilities(const struct device *
19311931
#if GMAC_ACTIVE_PRIORITY_QUEUE_NUM >= 1
19321932
ETHERNET_QAV |
19331933
#endif
1934-
ETHERNET_LINK_100BASE_T;
1934+
ETHERNET_LINK_100BASE;
19351935
}
19361936

19371937
#if GMAC_ACTIVE_PRIORITY_QUEUE_NUM >= 1

drivers/ethernet/eth_sensry_sy1xx_mac.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ static enum ethernet_hw_caps sy1xx_mac_get_caps(const struct device *dev)
346346

347347
/* basic implemented features */
348348
supported |= ETHERNET_PROMISC_MODE;
349-
supported |= ETHERNET_LINK_1000BASE_T;
349+
supported |= ETHERNET_LINK_1000BASE;
350350
supported |= ETHERNET_PROMISC_MODE;
351351

352352
return supported;

drivers/ethernet/eth_smsc911x.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ static enum ethernet_hw_caps eth_smsc911x_get_capabilities(const struct device *
416416
{
417417
ARG_UNUSED(dev);
418418

419-
return ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T;
419+
return ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE;
420420
}
421421

422422
#if defined(CONFIG_NET_STATISTICS_ETHERNET)

drivers/ethernet/eth_smsc91x.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -688,8 +688,8 @@ static enum ethernet_hw_caps eth_smsc_get_caps(const struct device *dev)
688688
{
689689
ARG_UNUSED(dev);
690690

691-
return (ETHERNET_LINK_10BASE_T
692-
| ETHERNET_LINK_100BASE_T
691+
return (ETHERNET_LINK_10BASE
692+
| ETHERNET_LINK_100BASE
693693
#if defined(CONFIG_NET_PROMISCUOUS_MODE)
694694
| ETHERNET_PROMISC_MODE
695695
#endif

drivers/ethernet/eth_stm32_hal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ static enum ethernet_hw_caps eth_stm32_hal_get_capabilities(const struct device
12641264
{
12651265
ARG_UNUSED(dev);
12661266

1267-
return ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T
1267+
return ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE
12681268
#if defined(CONFIG_NET_VLAN)
12691269
| ETHERNET_HW_VLAN
12701270
#endif

drivers/ethernet/eth_w5500.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ static enum ethernet_hw_caps w5500_get_capabilities(const struct device *dev)
370370
{
371371
ARG_UNUSED(dev);
372372

373-
return ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T
373+
return ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE
374374
#if defined(CONFIG_NET_PROMISCUOUS_MODE)
375375
| ETHERNET_PROMISC_MODE
376376
#endif

drivers/ethernet/eth_xilinx_axienet.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ static void xilinx_axienet_isr(const struct device *dev)
356356
static enum ethernet_hw_caps xilinx_axienet_caps(const struct device *dev)
357357
{
358358
const struct xilinx_axienet_config *config = dev->config;
359-
enum ethernet_hw_caps ret = ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T |
360-
ETHERNET_LINK_1000BASE_T;
359+
enum ethernet_hw_caps ret = ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE |
360+
ETHERNET_LINK_1000BASE;
361361

362362
if (config->have_rx_csum_offload) {
363363
ret |= ETHERNET_HW_RX_CHKSUM_OFFLOAD;

drivers/ethernet/eth_xlnx_gem.c

+6-8
Original file line numberDiff line numberDiff line change
@@ -622,21 +622,19 @@ static enum ethernet_hw_caps eth_xlnx_gem_get_capabilities(
622622

623623
if (dev_conf->max_link_speed == LINK_1GBIT) {
624624
if (dev_conf->phy_advertise_lower) {
625-
caps |= (ETHERNET_LINK_1000BASE_T |
626-
ETHERNET_LINK_100BASE_T |
627-
ETHERNET_LINK_10BASE_T);
625+
caps |= (ETHERNET_LINK_1000BASE | ETHERNET_LINK_100BASE |
626+
ETHERNET_LINK_10BASE);
628627
} else {
629-
caps |= ETHERNET_LINK_1000BASE_T;
628+
caps |= ETHERNET_LINK_1000BASE;
630629
}
631630
} else if (dev_conf->max_link_speed == LINK_100MBIT) {
632631
if (dev_conf->phy_advertise_lower) {
633-
caps |= (ETHERNET_LINK_100BASE_T |
634-
ETHERNET_LINK_10BASE_T);
632+
caps |= (ETHERNET_LINK_100BASE | ETHERNET_LINK_10BASE);
635633
} else {
636-
caps |= ETHERNET_LINK_100BASE_T;
634+
caps |= ETHERNET_LINK_100BASE;
637635
}
638636
} else {
639-
caps |= ETHERNET_LINK_10BASE_T;
637+
caps |= ETHERNET_LINK_10BASE;
640638
}
641639

642640
if (dev_conf->enable_rx_chksum_offload) {

drivers/ethernet/eth_xmc4xxx.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ static int eth_xmc4xxx_init(const struct device *dev)
884884
static enum ethernet_hw_caps eth_xmc4xxx_capabilities(const struct device *dev)
885885
{
886886
ARG_UNUSED(dev);
887-
enum ethernet_hw_caps caps = ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T |
887+
enum ethernet_hw_caps caps = ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE |
888888
ETHERNET_HW_TX_CHKSUM_OFFLOAD | ETHERNET_HW_RX_CHKSUM_OFFLOAD;
889889

890890
#if defined(CONFIG_PTP_CLOCK_XMC4XXX)

drivers/ethernet/nxp_imx_netc/dsa_nxp_imx_netc.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ static enum ethernet_hw_caps dsa_netc_get_capabilities(const struct device *dev)
214214
{
215215
ARG_UNUSED(dev);
216216

217-
return ETHERNET_DSA_SLAVE_PORT | ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T |
218-
ETHERNET_LINK_1000BASE_T;
217+
return ETHERNET_DSA_SLAVE_PORT | ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE |
218+
ETHERNET_LINK_1000BASE;
219219
}
220220

221221
static const struct device *dsa_netc_get_phy(const struct device *dev)

drivers/ethernet/nxp_imx_netc/eth_nxp_imx_netc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ enum ethernet_hw_caps netc_eth_get_capabilities(const struct device *dev)
284284
const struct netc_eth_config *cfg = dev->config;
285285
uint32_t caps;
286286

287-
caps = (ETHERNET_LINK_10BASE_T | ETHERNET_LINK_100BASE_T | ETHERNET_LINK_1000BASE_T |
287+
caps = (ETHERNET_LINK_10BASE | ETHERNET_LINK_100BASE | ETHERNET_LINK_1000BASE |
288288
ETHERNET_HW_RX_CHKSUM_OFFLOAD | ETHERNET_HW_FILTERING
289289
#if defined(CONFIG_NET_VLAN)
290290
| ETHERNET_HW_VLAN

drivers/wifi/nrf_wifi/src/net_if.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ static bool is_eapol(struct net_pkt *pkt)
331331

332332
enum ethernet_hw_caps nrf_wifi_if_caps_get(const struct device *dev)
333333
{
334-
enum ethernet_hw_caps caps = (ETHERNET_LINK_10BASE_T |
335-
ETHERNET_LINK_100BASE_T | ETHERNET_LINK_1000BASE_T);
334+
enum ethernet_hw_caps caps = (ETHERNET_LINK_10BASE |
335+
ETHERNET_LINK_100BASE | ETHERNET_LINK_1000BASE);
336336

337337
#ifdef CONFIG_NRF70_TCP_IP_CHECKSUM_OFFLOAD
338338
caps |= ETHERNET_HW_TX_CHKSUM_OFFLOAD |

0 commit comments

Comments
 (0)