Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
When the BSSID is automatically generated by the system,
it will not be passed as a parameter to the join function.
  • Loading branch information
jychen0611 committed Jul 7, 2024
1 parent 6c516ba commit 8ccfd33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions vwifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8ccfd33

Please sign in to comment.