net/iface: Finally remove the send function from net_if_api
And apply that to modem driver setting that pointer to NULL. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
72e1c2b4c1
commit
ee9dedd5a7
|
@ -1821,7 +1821,6 @@ static void offload_iface_init(struct net_if *iface)
|
|||
|
||||
static struct net_if_api api_funcs = {
|
||||
.init = offload_iface_init,
|
||||
.send = NULL,
|
||||
};
|
||||
|
||||
NET_DEVICE_OFFLOAD_INIT(modem_wncm14a2a, "MODEM_WNCM14A2A",
|
||||
|
|
|
@ -493,7 +493,6 @@ static int eswifi_init(struct device *dev)
|
|||
|
||||
static const struct net_wifi_mgmt_offload eswifi_offload_api = {
|
||||
.iface_api.init = eswifi_iface_init,
|
||||
.iface_api.send = NULL,
|
||||
.scan = eswifi_mgmt_scan,
|
||||
.connect = eswifi_mgmt_connect,
|
||||
.disconnect = eswifi_mgmt_disconnect,
|
||||
|
|
|
@ -1808,7 +1808,6 @@ bool net_if_is_promisc(struct net_if *iface);
|
|||
|
||||
struct net_if_api {
|
||||
void (*init)(struct net_if *iface);
|
||||
int (*send)(struct net_if *iface, struct net_pkt *pkt);
|
||||
};
|
||||
|
||||
#if defined(CONFIG_NET_DHCPV4)
|
||||
|
|
|
@ -240,11 +240,6 @@ static inline void init_iface(struct net_if *iface)
|
|||
NET_DBG("On iface %p", iface);
|
||||
|
||||
api->init(iface);
|
||||
|
||||
/* Test for api->send only when ip is *not* offloaded: */
|
||||
if (!net_if_is_ip_offloaded(iface)) {
|
||||
NET_ASSERT(api->send);
|
||||
}
|
||||
}
|
||||
|
||||
enum net_verdict net_if_send_data(struct net_if *iface, struct net_pkt *pkt)
|
||||
|
|
Loading…
Reference in a new issue