Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a673637 authored by Jesper Juhl's avatar Jesper Juhl Committed by Greg Kroah-Hartman
Browse files

staging: vt6656: iwctl: comment cleanup



All comments now have one space between the code they follow and the
comment start chars and one space after the comment start chars and
the comment text.
Also cleaned up some spacing within comments - mostly removed space
before ':' and added space after ',' etc.

Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f269d1c2
Loading
Loading
Loading
Loading
+133 −132
Original line number Original line Diff line number Diff line
@@ -600,8 +600,9 @@ int iwctl_siwap(struct net_device *dev, struct iw_request_info *info,
			PRINT_K("SIOCSIWAP:invalid desired BSSID return!\n");
			PRINT_K("SIOCSIWAP:invalid desired BSSID return!\n");
			return rc;
			return rc;
		}
		}
		//mike add: if desired AP is hidden ssid(there are two same BSSID in list),
		// mike add: if desired AP is hidden ssid(there are
		//                  then ignore,because you don't known which one to be connect with??
		// two same BSSID in list), then ignore,because you
		// don't known which one to be connect with??
		{
		{
			unsigned ii;
			unsigned ii;
			unsigned uSameBssidNum = 0;
			unsigned uSameBssidNum = 0;
@@ -744,8 +745,8 @@ int iwctl_siwessid(struct net_device *dev, struct iw_request_info *info,
		}
		}


#ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
#ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
		//Wext wil order another command of siwap to link with desired AP,
		// Wext wil order another command of siwap to link
		//so here need not associate??
		// with desired AP, so here need not associate??
		if (pDevice->bWPASuppWextEnabled == TRUE)  {
		if (pDevice->bWPASuppWextEnabled == TRUE)  {
			/*******search if  in hidden ssid mode ****/
			/*******search if  in hidden ssid mode ****/
			PKnownBSS pCurr = NULL;
			PKnownBSS pCurr = NULL;
@@ -770,8 +771,9 @@ int iwctl_siwessid(struct net_device *dev, struct iw_request_info *info,
						WLAN_CMD_SSID,
						WLAN_CMD_SSID,
						pMgmt->abyDesireSSID);
						pMgmt->abyDesireSSID);
			}
			}
			else {  //mike:to find out if that desired SSID is a hidden-ssid AP ,
			else {  // mike: to find out if that desired SSID is a
				//         by means of judging if there are two same BSSID exist in list ?
				// hidden-ssid AP, by means of judging if there
				// are two same BSSID exist in list ?
				for (ii = 0; ii < MAX_BSS_NUM; ii++) {
				for (ii = 0; ii < MAX_BSS_NUM; ii++) {
					if (pMgmt->sBSSList[ii].bActive &&
					if (pMgmt->sBSSList[ii].bActive &&
						!compare_ether_addr(pMgmt->sBSSList[ii].abyBSSID,
						!compare_ether_addr(pMgmt->sBSSList[ii].abyBSSID,
@@ -816,8 +818,8 @@ void iwctl_giwessid(struct net_device *dev, struct iw_request_info *info,


	DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWESSID \n");
	DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWESSID \n");


	// Note : if wrq->u.data.flags != 0, we should
	// Note: if wrq->u.data.flags != 0, we should get the relevant
	// get the relevant SSID from the SSID list...
	// SSID from the SSID list...


	// Get the current SSID
	// Get the current SSID
	pItemSSID = (PWLAN_IE_SSID)pMgmt->abyCurrSSID;
	pItemSSID = (PWLAN_IE_SSID)pMgmt->abyCurrSSID;
@@ -843,7 +845,6 @@ int iwctl_siwrate(struct net_device *dev, struct iw_request_info *info,
		0x60, 0x6C, 0x90
		0x60, 0x6C, 0x90
	};
	};



	DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWRATE \n");
	DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWRATE \n");
	if (!(pDevice->flags & DEVICE_FLAGS_OPENED)) {
	if (!(pDevice->flags & DEVICE_FLAGS_OPENED)) {
		rc = -EINVAL;
		rc = -EINVAL;
@@ -1591,8 +1592,8 @@ int iwctl_siwencodeext(struct net_device *dev, struct iw_request_info *info,
	param->u.wpa_key.seq = (u8 *)seq;
	param->u.wpa_key.seq = (u8 *)seq;
	param->u.wpa_key.seq_len = seq_len;
	param->u.wpa_key.seq_len = seq_len;


//****set if current action is Network Manager count??
/****set if current action is Network Manager count?? */
//****this method is so foolish,but there is no other way???
/****this method is so foolish,but there is no other way??? */
	if (param->u.wpa_key.alg_name == WPA_ALG_NONE) {
	if (param->u.wpa_key.alg_name == WPA_ALG_NONE) {
		if (param->u.wpa_key.key_index ==0) {
		if (param->u.wpa_key.key_index ==0) {
			pDevice->bwextstep0 = TRUE;
			pDevice->bwextstep0 = TRUE;
@@ -1620,7 +1621,7 @@ int iwctl_siwencodeext(struct net_device *dev, struct iw_request_info *info,
		memset(pMgmt->abyDesireBSSID, 0xFF,6);
		memset(pMgmt->abyDesireBSSID, 0xFF,6);
		KeyvInitTable(pDevice,&pDevice->sKey);
		KeyvInitTable(pDevice,&pDevice->sKey);
	}
	}
//******
/*******/
	spin_lock_irq(&pDevice->lock);
	spin_lock_irq(&pDevice->lock);
	ret = wpa_set_keys(pDevice, param, TRUE);
	ret = wpa_set_keys(pDevice, param, TRUE);
	spin_unlock_irq(&pDevice->lock);
	spin_unlock_irq(&pDevice->lock);
@@ -1667,7 +1668,7 @@ int iwctl_siwmlme(struct net_device *dev, struct iw_request_info *info,
#endif
#endif


static const iw_handler iwctl_handler[] = {
static const iw_handler iwctl_handler[] = {
	(iw_handler)NULL,      /* SIOCSIWCOMMIT */
	(iw_handler)NULL, // SIOCSIWCOMMIT
	(iw_handler)NULL, // SIOCGIWNAME
	(iw_handler)NULL, // SIOCGIWNAME
	(iw_handler)NULL, // SIOCSIWNWID
	(iw_handler)NULL, // SIOCSIWNWID
	(iw_handler)NULL, // SIOCGIWNWID
	(iw_handler)NULL, // SIOCGIWNWID