@@ -82,7 +82,7 @@ static atomic_t vwifi_wiphy_counter = ATOMIC_INIT(0);
82
82
83
83
/* Virtual interface pointed to by netdev_priv(). Fields in the structure are
84
84
* interface-dependent. Every interface has its own vwifi_vif, regardless of the
85
- * interface mode (STA, AP, Ad-hoc ...).
85
+ * interface mode (STA, AP, IBSS ...).
86
86
*/
87
87
struct vwifi_vif {
88
88
struct wireless_dev wdev ;
@@ -104,7 +104,7 @@ struct vwifi_vif {
104
104
105
105
struct mutex lock ;
106
106
107
- /* Split logic for STA and AP mode */
107
+ /* Split logic for the interface mode */
108
108
union {
109
109
/* Structure for STA mode */
110
110
struct {
@@ -139,46 +139,46 @@ struct vwifi_vif {
139
139
struct ieee80211_channel * channel ;
140
140
enum nl80211_chan_width bw ;
141
141
};
142
- /* Structure for AD-HOC mode */
142
+ /* Structure for IBSS(ad hoc) mode */
143
143
struct {
144
144
/* List node for storing ibss devices (vwifi->ibss_list is the
145
- * head), this field is for interface in AD-HOC mode.
145
+ * head), this field is for interface in IBSS mode.
146
146
*/
147
147
struct list_head ibss_list ;
148
148
/* defines the channel to use if no other IBSS to join can be found
149
149
*/
150
- struct cfg80211_chan_def ah_chandef ;
151
- u16 ah_beacon_int ;
150
+ struct cfg80211_chan_def ibss_chandef ;
151
+ u16 ibss_beacon_int ;
152
152
/* bitmap of basic rates */
153
- u32 ah_basic_rates ;
153
+ u32 ibss_basic_rates ;
154
154
/* The channel should be fixed -- do not search for IBSSs to join on
155
155
* other channels. */
156
- bool ah_channel_fixed ;
156
+ bool ibss_channel_fixed ;
157
157
/* This is a protected network, keys will be configured after
158
158
* joining */
159
- bool ah_privacy ;
159
+ bool ibss_privacy ;
160
160
/* whether user space controls IEEE 802.1X port, i.e.,
161
161
* sets/clears %NL80211_STA_FLAG_AUTHORIZED. If true, the driver is
162
162
* required to assume that the port is unauthorized until authorized
163
163
* by user space. Otherwise, port is marked authorized by default.
164
164
*/
165
- bool ah_control_port ;
165
+ bool ibss_control_port ;
166
166
/* TRUE if userspace expects to exchange control
167
167
* port frames over NL80211 instead of the network interface.
168
168
*/
169
- bool ah_control_port_over_nl80211 ;
169
+ bool ibss_control_port_over_nl80211 ;
170
170
/* whether user space controls DFS operation */
171
- bool ah_userspace_handles_dfs ;
171
+ bool ibss_userspace_handles_dfs ;
172
172
/* per-band multicast rate index + 1 (0: disabled) */
173
- int ah_mcast_rate [NUM_NL80211_BANDS ];
173
+ int ibss_mcast_rate [NUM_NL80211_BANDS ];
174
174
/* HT Capabilities over-rides. */
175
- struct ieee80211_ht_cap ah_ht_capa ;
175
+ struct ieee80211_ht_cap ibss_ht_capa ;
176
176
/* The bits of ht_capa which are to be used. */
177
- struct ieee80211_ht_cap ah_ht_capa_mask ;
177
+ struct ieee80211_ht_cap ibss_ht_capa_mask ;
178
178
/* static WEP keys */
179
- struct key_params * ah_wep_keys ;
179
+ struct key_params * ibss_wep_keys ;
180
180
/* key index (0..3) of the default TX static WEP key */
181
- int ah_wep_tx_key ;
181
+ int ibss_wep_tx_key ;
182
182
};
183
183
};
184
184
@@ -551,7 +551,7 @@ static void inform_bss(struct vwifi_vif *vif)
551
551
/* Helper function that prepares a structure with self-defined BSS information
552
552
* and "informs" the kernel about the "new" Independent BSS.
553
553
*/
554
- static void ah_inform_bss (struct vwifi_vif * vif )
554
+ static void ibss_inform_bss (struct vwifi_vif * vif )
555
555
{
556
556
struct vwifi_vif * ibss ;
557
557
@@ -567,7 +567,7 @@ static void ah_inform_bss(struct vwifi_vif *vif)
567
567
};
568
568
int capability = WLAN_CAPABILITY_IBSS ;
569
569
570
- if (ibss -> ah_privacy )
570
+ if (ibss -> ibss_privacy )
571
571
capability |= WLAN_CAPABILITY_PRIVACY ;
572
572
573
573
pr_info ("vwifi: %s performs scan, found %s (SSID: %s, BSSID: %pM)\n" ,
@@ -586,7 +586,7 @@ static void ah_inform_bss(struct vwifi_vif *vif)
586
586
/* It is possible to use cfg80211_inform_bss() instead. */
587
587
bss = cfg80211_inform_bss_data (
588
588
vif -> wdev .wiphy , & data , CFG80211_BSS_FTYPE_UNKNOWN , ibss -> bssid ,
589
- tsf , capability , ibss -> ah_beacon_int , ibss -> beacon_ie ,
589
+ tsf , capability , ibss -> ibss_beacon_int , ibss -> beacon_ie ,
590
590
ibss -> beacon_ie_len , GFP_KERNEL );
591
591
592
592
/* cfg80211_inform_bss_data() returns cfg80211_bss structure reference
@@ -949,7 +949,7 @@ static netdev_tx_t vwifi_ndo_start_xmit(struct sk_buff *skb,
949
949
}
950
950
}
951
951
}
952
- /* TX by interface of AD-HOC mode */
952
+ /* TX by interface of IBSS(ad-hoc) mode */
953
953
else if (vif -> wdev .iftype == NL80211_IFTYPE_ADHOC ) {
954
954
/* Check if the packet is broadcasting */
955
955
if (is_broadcast_ether_addr (eth_hdr -> h_dest )) {
@@ -1028,7 +1028,7 @@ static void vwifi_scan_timeout_work(struct work_struct *w)
1028
1028
1029
1029
/* inform with dummy BSS */
1030
1030
inform_bss (vif );
1031
- ah_inform_bss (vif );
1031
+ ibss_inform_bss (vif );
1032
1032
1033
1033
if (mutex_lock_interruptible (& vif -> lock ))
1034
1034
return ;
@@ -1575,7 +1575,7 @@ static int vwifi_change_iface(struct wiphy *wiphy,
1575
1575
ndev -> ieee80211_ptr -> iftype = type ;
1576
1576
break ;
1577
1577
case NL80211_IFTYPE_ADHOC :
1578
- pr_info ("vwifi: %s start acting in AD-HOC mode.\n" , ndev -> name );
1578
+ pr_info ("vwifi: %s start acting in IBSS mode.\n" , ndev -> name );
1579
1579
ndev -> ieee80211_ptr -> iftype = type ;
1580
1580
break ;
1581
1581
default :
@@ -2067,22 +2067,22 @@ static int vwifi_join_ibss(struct wiphy *wiphy,
2067
2067
/* Retrieve IBSS configuration parameters */
2068
2068
memcpy (vif -> ssid , params -> ssid , params -> ssid_len );
2069
2069
memcpy (vif -> bssid , params -> bssid , ETH_ALEN );
2070
- vif -> ah_chandef = params -> chandef ;
2070
+ vif -> ibss_chandef = params -> chandef ;
2071
2071
vif -> ssid_len = params -> ssid_len ;
2072
2072
vif -> beacon_ie_len = params -> ie_len ;
2073
2073
memcpy (vif -> beacon_ie , params -> ie , params -> ie_len );
2074
- vif -> ah_beacon_int = params -> beacon_interval ;
2075
- vif -> ah_basic_rates = params -> basic_rates ;
2076
- vif -> ah_channel_fixed = params -> channel_fixed ;
2077
- vif -> ah_privacy = params -> privacy ;
2078
- vif -> ah_control_port = params -> control_port ;
2079
- vif -> ah_control_port_over_nl80211 = params -> control_port_over_nl80211 ;
2080
- vif -> ah_userspace_handles_dfs = params -> userspace_handles_dfs ;
2081
- memcpy (vif -> ah_mcast_rate , params -> mcast_rate , sizeof (params -> mcast_rate ));
2082
- vif -> ah_ht_capa = params -> ht_capa ;
2083
- vif -> ah_ht_capa_mask = params -> ht_capa_mask ;
2084
- vif -> ah_wep_keys = params -> wep_keys ;
2085
- vif -> ah_wep_tx_key = params -> wep_tx_key ;
2074
+ vif -> ibss_beacon_int = params -> beacon_interval ;
2075
+ vif -> ibss_basic_rates = params -> basic_rates ;
2076
+ vif -> ibss_channel_fixed = params -> channel_fixed ;
2077
+ vif -> ibss_privacy = params -> privacy ;
2078
+ vif -> ibss_control_port = params -> control_port ;
2079
+ vif -> ibss_control_port_over_nl80211 = params -> control_port_over_nl80211 ;
2080
+ vif -> ibss_userspace_handles_dfs = params -> userspace_handles_dfs ;
2081
+ memcpy (vif -> ibss_mcast_rate , params -> mcast_rate , sizeof (params -> mcast_rate ));
2082
+ vif -> ibss_ht_capa = params -> ht_capa ;
2083
+ vif -> ibss_ht_capa_mask = params -> ht_capa_mask ;
2084
+ vif -> ibss_wep_keys = params -> wep_keys ;
2085
+ vif -> ibss_wep_tx_key = params -> wep_tx_key ;
2086
2086
2087
2087
mutex_unlock (& vif -> lock );
2088
2088
0 commit comments