From 8ccfd33289eb1f2dc39431685f8ec82d7cd89431 Mon Sep 17 00:00:00 2001 From: elian Date: Sun, 7 Jul 2024 22:27:31 +0800 Subject: [PATCH] Add comments When the BSSID is automatically generated by the system, it will not be passed as a parameter to the join function. --- scripts/verify.sh | 2 ++ vwifi.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/verify.sh b/scripts/verify.sh index 11f2cf2..baaa815 100755 --- a/scripts/verify.sh +++ b/scripts/verify.sh @@ -211,6 +211,8 @@ if [ $final_ret -eq 0 ]; then echo "(be patient, it will take some time to route...)" echo "================================================================================" sudo ip netns exec ns3 ping -c 1 10.0.0.5 + + # sudo ip netns exec ns3 ping -c 1 10.0.0.5 ping_rc=$? if [ $ping_rc -ne 0 ]; then final_ret=8 diff --git a/vwifi.c b/vwifi.c index bcfd4f0..ad093de 100644 --- a/vwifi.c +++ b/vwifi.c @@ -2074,6 +2074,8 @@ static int vwifi_join_ibss(struct wiphy *wiphy, return -ERESTARTSYS; /* Retrieve IBSS configuration parameters */ memcpy(vif->ssid, params->ssid, params->ssid_len); + /* When the BSSID is automatically generated by the system, it will not be + * passed as a parameter to the join function. */ if (params->bssid) memcpy(vif->bssid, params->bssid, ETH_ALEN); vif->ibss_chandef = params->chandef;