wtap(4): Rename interface name
The original interface created by wtap is named "wlan%d", which is the same as the name of the vap created by wlan(4) and cause ifconfig(8) may output like this: wlan0: parent interface: wlan0 Rename the interface created by wtap(4) to "wtap%d" to avoid confusing. Reviewed by: adrian Sponsored by: Google, Inc. (GSoC 2022) Differential Revision: https://reviews.freebsd.org/D35751
This commit is contained in:
parent
0a7fa9d11b
commit
f7f4ce2d28
@ -183,7 +183,7 @@ new_wtap(struct wtap_hal *hal, int32_t id)
|
||||
hal->hal_devs[id]->sc_md = hal->hal_md;
|
||||
hal->hal_devs[id]->id = id;
|
||||
snprintf(hal->hal_devs[id]->name, sizeof(hal->hal_devs[id]->name),
|
||||
"wlan%d", id);
|
||||
"wtap%d", id);
|
||||
mtx_init(&hal->hal_devs[id]->sc_mtx, "wtap_softc mtx", NULL,
|
||||
MTX_DEF | MTX_RECURSE);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user