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 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");
			return rc;
		}
		//mike add: if desired AP is hidden ssid(there are two same BSSID in list),
		//                  then ignore,because you don't known which one to be connect with??
		// mike add: if desired AP is hidden ssid(there are
		// two same BSSID in list), then ignore,because you
		// don't known which one to be connect with??
		{
			unsigned ii;
			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
		//Wext wil order another command of siwap to link with desired AP,
		//so here need not associate??
		// Wext wil order another command of siwap to link
		// with desired AP, so here need not associate??
		if (pDevice->bWPASuppWextEnabled == TRUE)  {
			/*******search if  in hidden ssid mode ****/
			PKnownBSS pCurr = NULL;
@@ -770,8 +771,9 @@ int iwctl_siwessid(struct net_device *dev, struct iw_request_info *info,
						WLAN_CMD_SSID,
						pMgmt->abyDesireSSID);
			}
			else {  //mike:to find out if that desired SSID is a hidden-ssid AP ,
				//         by means of judging if there are two same BSSID exist in list ?
			else {  // mike: to find out if that desired SSID is a
				// hidden-ssid AP, by means of judging if there
				// are two same BSSID exist in list ?
				for (ii = 0; ii < MAX_BSS_NUM; ii++) {
					if (pMgmt->sBSSList[ii].bActive &&
						!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");

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

	// Get the current SSID
	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
	};


	DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCSIWRATE \n");
	if (!(pDevice->flags & DEVICE_FLAGS_OPENED)) {
		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_len = seq_len;

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

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