!59 add ethernet code.

Merge pull request !59 from joseph/master
This commit is contained in:
openharmony_ci 2021-07-31 10:09:47 +00:00 committed by Gitee
commit 199e102185

View File

@ -183,11 +183,10 @@ static int32_t NetDevDeInit(struct NetDeviceImpl *impl)
return HDF_SUCCESS;
}
static int32_t NetDevAdd(struct NetDeviceImpl *impl,
Protocol80211IfType ifType)
static int32_t NetDevAdd(struct NetDeviceImpl *impl)
{
struct net_device *dev = NULL;
int ret = 0;
int ret;
if ((dev = GetDevFromDevImpl(impl)) == NULL) {
return HDF_ERR_INVALID_PARAM;