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

Commit 37f0777f authored by Jesper Juhl's avatar Jesper Juhl Committed by Greg Kroah-Hartman
Browse files

staging: vt6656: iwctl: Cleanup spacing around operators (mostly)



This cleans up spacing around operators according to CodingStyle.
(A few deletions of empty lines that were missed by a previous patch are also included.
 A few bits and pieces broken on multiple lines were put one one line as well).

Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent aeadd58d
Loading
Loading
Loading
Loading
+79 −89
Original line number Original line Diff line number Diff line
@@ -311,7 +311,6 @@ int iwctl_giwscan(struct net_device *dev, struct iw_request_info *info,
				iwe.u.data.length = pBSS->wRSNLen;
				iwe.u.data.length = pBSS->wRSNLen;
				current_ev = iwe_stream_add_point(info, current_ev, end_buf, &iwe, pBSS->byRSNIE);
				current_ev = iwe_stream_add_point(info, current_ev, end_buf, &iwe, pBSS->byRSNIE);
			}
			}

		}
		}
	} // for
	} // for
	wrq->length = current_ev - extra;
	wrq->length = current_ev - extra;
@@ -402,7 +401,6 @@ int iwctl_siwmode(struct net_device *dev, struct iw_request_info *info,
	}
	}


	switch (*wmode) {
	switch (*wmode) {

	case IW_MODE_ADHOC:
	case IW_MODE_ADHOC:
		if (pMgmt->eConfigMode != WMAC_CONFIG_IBSS_STA) {
		if (pMgmt->eConfigMode != WMAC_CONFIG_IBSS_STA) {
			pMgmt->eConfigMode = WMAC_CONFIG_IBSS_STA;
			pMgmt->eConfigMode = WMAC_CONFIG_IBSS_STA;
@@ -457,7 +455,6 @@ void iwctl_giwmode(struct net_device *dev, struct iw_request_info *info,
	PSDevice pDevice = netdev_priv(dev);
	PSDevice pDevice = netdev_priv(dev);
	PSMgmtObject pMgmt = &(pDevice->sMgmtObj);
	PSMgmtObject pMgmt = &(pDevice->sMgmtObj);



	DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWMODE \n");
	DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " SIOCGIWMODE \n");
	// If not managed, assume it's ad-hoc
	// If not managed, assume it's ad-hoc
	switch (pMgmt->eConfigMode) {
	switch (pMgmt->eConfigMode) {
@@ -758,8 +755,7 @@ int iwctl_siwessid(struct net_device *dev, struct iw_request_info *info,
			memcpy(abyTmpDesireSSID, pMgmt->abyDesireSSID, sizeof(abyTmpDesireSSID));
			memcpy(abyTmpDesireSSID, pMgmt->abyDesireSSID, sizeof(abyTmpDesireSSID));
			pCurr = BSSpSearchBSSList(pDevice, NULL,
			pCurr = BSSpSearchBSSList(pDevice, NULL,
						abyTmpDesireSSID,
						abyTmpDesireSSID,
						pDevice->eConfigPHYMode
						pDevice->eConfigPHYMode);
				);


			if (pCurr == NULL) {
			if (pCurr == NULL) {
				PRINT_K("SIOCSIWESSID:hidden ssid site survey before associate.......\n");
				PRINT_K("SIOCSIWESSID:hidden ssid site survey before associate.......\n");
@@ -855,8 +851,7 @@ int iwctl_siwrate(struct net_device *dev, struct iw_request_info *info,
	// First: get a valid bit rate value
	// First: get a valid bit rate value


	// Which type of value
	// Which type of value
	if ((wrq->value < 13) &&
	if ((wrq->value < 13) && (wrq->value >= 0)) {
		(wrq->value >= 0)) {
		// Setting by rate index
		// Setting by rate index
		// Find value in the magic rate table
		// Find value in the magic rate table
		brate = wrq->value;
		brate = wrq->value;
@@ -902,7 +897,6 @@ int iwctl_siwrate(struct net_device *dev, struct iw_request_info *info,
			pDevice->uConnectionRate = brate;
			pDevice->uConnectionRate = brate;
			DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Fixed to Rate %d \n", pDevice->uConnectionRate);
			DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Fixed to Rate %d \n", pDevice->uConnectionRate);
		}
		}

	}
	}
	else {
	else {
		pDevice->bFixRate = FALSE;
		pDevice->bFixRate = FALSE;
@@ -1086,7 +1080,6 @@ int iwctl_giwretry(struct net_device *dev, struct iw_request_info *info,
		if ((int)pDevice->byShortRetryLimit != (int)pDevice->byLongRetryLimit)
		if ((int)pDevice->byShortRetryLimit != (int)pDevice->byLongRetryLimit)
			wrq->flags |= IW_RETRY_MIN;
			wrq->flags |= IW_RETRY_MIN;
	}
	}

	return 0;
	return 0;
}
}


@@ -1145,8 +1138,7 @@ int iwctl_siwencode(struct net_device *dev, struct iw_request_info *info,
			KeybSetDefaultKey(pDevice,
			KeybSetDefaultKey(pDevice,
					&(pDevice->sKey),
					&(pDevice->sKey),
					dwKeyIndex | (1 << 31),
					dwKeyIndex | (1 << 31),
					wrq->length,
					wrq->length, NULL,
					NULL,
					pDevice->abyKey,
					pDevice->abyKey,
					KEY_CTL_WEP
					KEY_CTL_WEP
				);
				);
@@ -1732,9 +1724,7 @@ static const iw_handler iwctl_private_handler[] = {
};
};


struct iw_priv_args iwctl_private_args[] = {
struct iw_priv_args iwctl_private_args[] = {
	{ IOCTL_CMD_SET,
	{ IOCTL_CMD_SET, IW_PRIV_TYPE_CHAR | 1024, 0, "set" },
	  IW_PRIV_TYPE_CHAR | 1024, 0,
	  "set"},
};
};


const struct iw_handler_def iwctl_handler_def = {
const struct iw_handler_def iwctl_handler_def = {