Closed rickywu0421 closed 2 years ago
I got an error from the make check
.
Installing Module vwifi.ko
command failed: No such file or directory (-2)
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.696 ms
64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.124 ms
64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.185 ms
64 bytes from 10.0.0.2: icmp_seq=4 ttl=64 time=0.151 ms
Linux lima-default 5.15.0-33-generic #34-Ubuntu SMP Wed May 18 13:39:51 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
I got an error from the
make check
.Installing Module vwifi.ko command failed: No such file or directory (-2) PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data. 64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.696 ms 64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.124 ms 64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.185 ms 64 bytes from 10.0.0.2: icmp_seq=4 ttl=64 time=0.151 ms
Linux lima-default 5.15.0-33-generic #34-Ubuntu SMP Wed May 18 13:39:51 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
I got this error message too for unknown reason, which is generated by the following command:
$ sudo iw dev owl0 link
Connected to 26:05:d1:60:34:c8 (on owl0)
SSID: MyHomeWiFi
freq: 2437
command failed: No such file or directory (-2)
However, this error message will not affect the whole testing.
Ok, let's open another issue for tracking this error message. I approve of #24
Ok, let's open another issue for tracking this error message. I approve of #24
Next time, click "Approve" instead of typing the message if you are about to approve. See https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request
I renamed the owl_ndev_priv_context to owl_vif in order to reveal the structure includes all the fields which are interface-dependent.
I also moved many fields in owl_context to owl_vif to keep owl_context interface-independent.
In order to add a virtual interface to a network namespace for testing, every virtual interface is assigned to a specific wiphy.
For the future support for more than two interfaces, I rewrote some code in ndo_start_xmit to fit more general circumstances.
User now can pass the module parameter "interfaces" to vwifi, and thus the driver will generate desired number of interfaces, which are all in STA mode. For the future support for different mode, one can implement change_virtual_intf(), and call it through nl80211.