Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,10 @@ Enter the top directory of the Linux kernel source and use the following command
```shell
$ make menuconfig
```
The default kernel configuration will work for our testing environment, so just click `save` and we get `.config` on the top directory.
To allow virtio device to be bound to vwifi driver, please ensure the virtio network driver is disabled before you click `save`. By excluding the virtio network driver, you should spot `CONFIG_VIRTIO_NET=n` in the `.config` file on the top directory.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explain the rationale.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out. I’ve created PR #92 to address this issue, and I’ll follow up and resolve it in that PR.

```
Device Drivers ---> Network device support ---> Virtio network driver ---> no
```

Before building the kernel, please ensure that all the needed packages or libraries have been installed in your machine.

Expand Down Expand Up @@ -750,6 +753,11 @@ $ sudo ip link set tap1 master br0
$ sudo ip link set tap2 master br0
```

Start `bridge` device:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid necessary backticks.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out. I’ve created PR #92 to address this issue, and I’ll follow up and resolve it in that PR.

```shell
$ sudo ip link set br0 up
```

### Start VM with Qemu
Once we have our kernel image and rootfs, we can start running `Qemu`:

Expand Down
6 changes: 6 additions & 0 deletions vwifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2019,6 +2019,9 @@ static int vwifi_delete_interface(struct vwifi_vif *vif)
/* Set transmit power for the virtual interface */
static int vwifi_set_tx_power(struct wiphy *wiphy,
struct wireless_dev *wdev,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0)
int radio_idx,
#endif
enum nl80211_tx_power_setting type,
int mbm)
{
Expand Down Expand Up @@ -2064,6 +2067,9 @@ static int vwifi_set_tx_power(struct wiphy *wiphy,
/* Get transmit power from the virtual interface */
static int vwifi_get_tx_power(struct wiphy *wiphy,
struct wireless_dev *wdev,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0)
int radio_idx,
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0)
unsigned int link_id,
#endif
Expand Down
Loading