File tree Expand file tree Collapse file tree 3 files changed +22
-13
lines changed Expand file tree Collapse file tree 3 files changed +22
-13
lines changed Original file line number Diff line number Diff line change @@ -160,21 +160,19 @@ if [ $final_ret -eq 0 ]; then
160
160
final_ret=7
161
161
fi
162
162
163
- # vw3 becomes an IBSS and then joins the "ibss1" network (BSSID: 00:76:77:33:00:00) .
163
+ # vw3 becomes an IBSS and then joins the "ibss1" network.
164
164
echo
165
- echo " =================================="
166
- echo " vw3 join ibss1 (00:76:77:33:00:00)"
167
- echo " =================================="
168
- sudo ip netns exec ns3 iw dev vw3 set type ibss
169
- sudo ip netns exec ns3 iw dev vw3 ibss join ibss1 2412 NOHT fixed-freq 00:76:77:33:00:00 beacon-interval 200
165
+ echo " =============="
166
+ echo " vw3 join ibss1"
167
+ echo " =============="
168
+ sudo ip netns exec ns3 wpa_supplicant -i vw3 -B -c scripts/wpa_supplicant_ibss.conf
170
169
171
- # vw4 becomes an IBSS and then joins the "ibss1" network (BSSID: 00:76:77:33:00:00) .
170
+ # vw4 becomes an IBSS and then joins the "ibss1" network.
172
171
echo
173
- echo " =================================="
174
- echo " vw4 join ibss1 (00:76:77:33:00:00)"
175
- echo " =================================="
176
- sudo ip netns exec ns4 iw dev vw4 set type ibss
177
- sudo ip netns exec ns4 iw dev vw4 ibss join ibss1 2412 NOHT fixed-freq 00:76:77:33:00:00 beacon-interval 200
172
+ echo " =============="
173
+ echo " vw4 join ibss1"
174
+ echo " =============="
175
+ sudo ip netns exec ns4 wpa_supplicant -i vw4 -B -c scripts/wpa_supplicant_ibss.conf
178
176
179
177
# vw5 becomes an IBSS and then joins the "ibss2" network (BSSID: 00:76:77:35:00:00).
180
178
echo
Original file line number Diff line number Diff line change
1
+ network={
2
+ ssid="ibss1"
3
+ mode=1
4
+ frequency=2412
5
+ key_mgmt=WPA-PSK
6
+ proto=RSN
7
+ pairwise=CCMP
8
+ group=CCMP
9
+ psk="12345678"
10
+ }
Original file line number Diff line number Diff line change @@ -2074,7 +2074,8 @@ static int vwifi_join_ibss(struct wiphy *wiphy,
2074
2074
return - ERESTARTSYS ;
2075
2075
/* Retrieve IBSS configuration parameters */
2076
2076
memcpy (vif -> ssid , params -> ssid , params -> ssid_len );
2077
- memcpy (vif -> bssid , params -> bssid , ETH_ALEN );
2077
+ if (params -> bssid )
2078
+ memcpy (vif -> bssid , params -> bssid , ETH_ALEN );
2078
2079
vif -> ibss_chandef = params -> chandef ;
2079
2080
vif -> ssid_len = params -> ssid_len ;
2080
2081
vif -> beacon_ie_len = params -> ie_len ;
You can’t perform that action at this time.
0 commit comments