wwan: core: support default netdev creation
Most, if not each WWAN device driver will create a netdev for the default data channel. Therefore, add an option for the WWAN netdev ops registration function to create a default netdev for the WWAN device. A WWAN device driver should pass a default data channel link id to the ops registering function to request the creation of a default netdev, or a special value WWAN_NO_DEFAULT_LINK to inform the WWAN core that the default netdev should not be created. For now, only wwan_hwsim utilize the default link creation option. Other drivers will be reworked next. Signed-off-by:Sergey Ryazanov <ryazanov.s.a@gmail.com> CC: M Chetan Kumar <m.chetan.kumar@intel.com> CC: Intel Corporation <linuxwwan@intel.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/mhi/net.c 2 additions, 1 deletiondrivers/net/mhi/net.c
- drivers/net/wwan/iosm/iosm_ipc_wwan.c 2 additions, 1 deletiondrivers/net/wwan/iosm/iosm_ipc_wwan.c
- drivers/net/wwan/wwan_core.c 74 additions, 1 deletiondrivers/net/wwan/wwan_core.c
- drivers/net/wwan/wwan_hwsim.c 1 addition, 1 deletiondrivers/net/wwan/wwan_hwsim.c
- include/linux/wwan.h 7 additions, 1 deletioninclude/linux/wwan.h
Loading
Please register or sign in to comment