@@ -2998,7 +2998,7 @@ static int rtw_p2p_connect(struct net_device *dev,
2998
2998
struct list_head * plist , * phead ;
2999
2999
struct __queue * queue = & pmlmepriv -> scanned_queue ;
3000
3000
struct wlan_network * pnetwork = NULL ;
3001
- uint uintPeerChannel = 0 ;
3001
+ u32 peer_channel = 0 ;
3002
3002
3003
3003
/* Commented by Albert 20110304 */
3004
3004
/* The input data contains two informations. */
@@ -3028,7 +3028,7 @@ static int rtw_p2p_connect(struct net_device *dev,
3028
3028
while (phead != plist ) {
3029
3029
pnetwork = container_of (plist , struct wlan_network , list );
3030
3030
if (!memcmp (pnetwork -> network .MacAddress , peerMAC , ETH_ALEN )) {
3031
- uintPeerChannel = pnetwork -> network .Configuration .DSConfig ;
3031
+ peer_channel = pnetwork -> network .Configuration .DSConfig ;
3032
3032
break ;
3033
3033
}
3034
3034
@@ -3037,11 +3037,11 @@ static int rtw_p2p_connect(struct net_device *dev,
3037
3037
3038
3038
spin_unlock_bh (& pmlmepriv -> scanned_queue .lock );
3039
3039
3040
- if (uintPeerChannel ) {
3040
+ if (peer_channel ) {
3041
3041
memset (& pwdinfo -> nego_req_info , 0x00 , sizeof (struct tx_nego_req_info ));
3042
3042
memset (& pwdinfo -> groupid_info , 0x00 , sizeof (struct group_id_info ));
3043
3043
3044
- pwdinfo -> nego_req_info .peer_channel_num [0 ] = uintPeerChannel ;
3044
+ pwdinfo -> nego_req_info .peer_channel_num [0 ] = peer_channel ;
3045
3045
memcpy (pwdinfo -> nego_req_info .peerDevAddr , pnetwork -> network .MacAddress , ETH_ALEN );
3046
3046
pwdinfo -> nego_req_info .benable = true;
3047
3047
@@ -3076,7 +3076,7 @@ static int rtw_p2p_invite_req(struct net_device *dev,
3076
3076
struct list_head * plist , * phead ;
3077
3077
struct __queue * queue = & pmlmepriv -> scanned_queue ;
3078
3078
struct wlan_network * pnetwork = NULL ;
3079
- uint uintPeerChannel = 0 ;
3079
+ uint peer_channel = 0 ;
3080
3080
u8 attr_content [50 ] = {0x00 };
3081
3081
u8 * p2pie ;
3082
3082
uint p2pielen = 0 , attr_contentlen = 0 ;
@@ -3132,13 +3132,13 @@ static int rtw_p2p_invite_req(struct net_device *dev,
3132
3132
if (rtw_get_p2p_attr_content (p2pie , p2pielen , P2P_ATTR_DEVICE_ID , attr_content , & attr_contentlen )) {
3133
3133
/* Handle the P2P Device ID attribute of Beacon first */
3134
3134
if (!memcmp (attr_content , pinvite_req_info -> peer_macaddr , ETH_ALEN )) {
3135
- uintPeerChannel = pnetwork -> network .Configuration .DSConfig ;
3135
+ peer_channel = pnetwork -> network .Configuration .DSConfig ;
3136
3136
break ;
3137
3137
}
3138
3138
} else if (rtw_get_p2p_attr_content (p2pie , p2pielen , P2P_ATTR_DEVICE_INFO , attr_content , & attr_contentlen )) {
3139
3139
/* Handle the P2P Device Info attribute of probe response */
3140
3140
if (!memcmp (attr_content , pinvite_req_info -> peer_macaddr , ETH_ALEN )) {
3141
- uintPeerChannel = pnetwork -> network .Configuration .DSConfig ;
3141
+ peer_channel = pnetwork -> network .Configuration .DSConfig ;
3142
3142
break ;
3143
3143
}
3144
3144
}
@@ -3148,7 +3148,7 @@ static int rtw_p2p_invite_req(struct net_device *dev,
3148
3148
3149
3149
spin_unlock_bh (& pmlmepriv -> scanned_queue .lock );
3150
3150
3151
- if (uintPeerChannel ) {
3151
+ if (peer_channel ) {
3152
3152
/* Store the GO's bssid */
3153
3153
for (jj = 0 , kk = 18 ; jj < ETH_ALEN ; jj ++ , kk += 3 )
3154
3154
pinvite_req_info -> go_bssid [jj ] = key_2char2num (extra [kk ], extra [kk + 1 ]);
@@ -3157,12 +3157,12 @@ static int rtw_p2p_invite_req(struct net_device *dev,
3157
3157
pinvite_req_info -> ssidlen = wrqu -> data .length - 36 ;
3158
3158
memcpy (pinvite_req_info -> go_ssid , & extra [36 ], (u32 )pinvite_req_info -> ssidlen );
3159
3159
pinvite_req_info -> benable = true;
3160
- pinvite_req_info -> peer_ch = uintPeerChannel ;
3160
+ pinvite_req_info -> peer_ch = peer_channel ;
3161
3161
3162
3162
rtw_p2p_set_pre_state (pwdinfo , rtw_p2p_state (pwdinfo ));
3163
3163
rtw_p2p_set_state (pwdinfo , P2P_STATE_TX_INVITE_REQ );
3164
3164
3165
- set_channel_bwmode (padapter , uintPeerChannel , HAL_PRIME_CHNL_OFFSET_DONT_CARE , HT_CHANNEL_WIDTH_20 );
3165
+ set_channel_bwmode (padapter , peer_channel , HAL_PRIME_CHNL_OFFSET_DONT_CARE , HT_CHANNEL_WIDTH_20 );
3166
3166
3167
3167
_set_timer (& pwdinfo -> pre_tx_scan_timer , P2P_TX_PRESCAN_TIMEOUT );
3168
3168
@@ -3215,7 +3215,7 @@ static int rtw_p2p_prov_disc(struct net_device *dev,
3215
3215
struct list_head * plist , * phead ;
3216
3216
struct __queue * queue = & pmlmepriv -> scanned_queue ;
3217
3217
struct wlan_network * pnetwork = NULL ;
3218
- uint uintPeerChannel = 0 ;
3218
+ uint peer_channel = 0 ;
3219
3219
u8 attr_content [100 ] = {0x00 };
3220
3220
u8 * p2pie ;
3221
3221
uint p2pielen = 0 , attr_contentlen = 0 ;
@@ -3265,7 +3265,7 @@ static int rtw_p2p_prov_disc(struct net_device *dev,
3265
3265
plist = phead -> next ;
3266
3266
3267
3267
while (phead != plist ) {
3268
- if (uintPeerChannel != 0 )
3268
+ if (peer_channel != 0 )
3269
3269
break ;
3270
3270
3271
3271
pnetwork = container_of (plist , struct wlan_network , list );
@@ -3283,13 +3283,13 @@ static int rtw_p2p_prov_disc(struct net_device *dev,
3283
3283
if (rtw_get_p2p_attr_content (p2pie , p2pielen , P2P_ATTR_DEVICE_ID , attr_content , & attr_contentlen )) {
3284
3284
/* Handle the P2P Device ID attribute of Beacon first */
3285
3285
if (!memcmp (attr_content , peerMAC , ETH_ALEN )) {
3286
- uintPeerChannel = pnetwork -> network .Configuration .DSConfig ;
3286
+ peer_channel = pnetwork -> network .Configuration .DSConfig ;
3287
3287
break ;
3288
3288
}
3289
3289
} else if (rtw_get_p2p_attr_content (p2pie , p2pielen , P2P_ATTR_DEVICE_INFO , attr_content , & attr_contentlen )) {
3290
3290
/* Handle the P2P Device Info attribute of probe response */
3291
3291
if (!memcmp (attr_content , peerMAC , ETH_ALEN )) {
3292
- uintPeerChannel = pnetwork -> network .Configuration .DSConfig ;
3292
+ peer_channel = pnetwork -> network .Configuration .DSConfig ;
3293
3293
break ;
3294
3294
}
3295
3295
}
@@ -3304,11 +3304,11 @@ static int rtw_p2p_prov_disc(struct net_device *dev,
3304
3304
3305
3305
spin_unlock_bh (& pmlmepriv -> scanned_queue .lock );
3306
3306
3307
- if (uintPeerChannel ) {
3308
- DBG_88E ("[%s] peer channel: %d!\n" , __func__ , uintPeerChannel );
3307
+ if (peer_channel ) {
3308
+ DBG_88E ("[%s] peer channel: %d!\n" , __func__ , peer_channel );
3309
3309
memcpy (pwdinfo -> tx_prov_disc_info .peerIFAddr , pnetwork -> network .MacAddress , ETH_ALEN );
3310
3310
memcpy (pwdinfo -> tx_prov_disc_info .peerDevAddr , peerMAC , ETH_ALEN );
3311
- pwdinfo -> tx_prov_disc_info .peer_channel_num [0 ] = (u16 )uintPeerChannel ;
3311
+ pwdinfo -> tx_prov_disc_info .peer_channel_num [0 ] = (u16 )peer_channel ;
3312
3312
pwdinfo -> tx_prov_disc_info .benable = true;
3313
3313
rtw_p2p_set_pre_state (pwdinfo , rtw_p2p_state (pwdinfo ));
3314
3314
rtw_p2p_set_state (pwdinfo , P2P_STATE_TX_PROVISION_DIS_REQ );
@@ -3320,7 +3320,7 @@ static int rtw_p2p_prov_disc(struct net_device *dev,
3320
3320
pwdinfo -> tx_prov_disc_info .ssid .SsidLength = P2P_WILDCARD_SSID_LEN ;
3321
3321
}
3322
3322
3323
- set_channel_bwmode (padapter , uintPeerChannel , HAL_PRIME_CHNL_OFFSET_DONT_CARE , HT_CHANNEL_WIDTH_20 );
3323
+ set_channel_bwmode (padapter , peer_channel , HAL_PRIME_CHNL_OFFSET_DONT_CARE , HT_CHANNEL_WIDTH_20 );
3324
3324
3325
3325
_set_timer (& pwdinfo -> pre_tx_scan_timer , P2P_TX_PRESCAN_TIMEOUT );
3326
3326
0 commit comments