Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288989
b: refs/heads/master
c: 08afcf9
h: refs/heads/master
i:
  288987: bcf580e
v: v3
  • Loading branch information
mahendra singh meena authored and Greg Kroah-Hartman committed Feb 9, 2012
1 parent e599c2e commit 141ebdb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2fdde902ca4b19d051c5fa15f81dd6d900551db8
refs/heads/master: 08afcf9c9f5b9372e26f3f29313f45528fafc15c
23 changes: 11 additions & 12 deletions trunk/drivers/staging/vt6655/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,16 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
pItemSSID = (PWLAN_IE_SSID)pBSS->abySSID;
memset(pList->sBSSIDList[ii].abySSID, 0, WLAN_SSID_MAXLEN + 1);
memcpy(pList->sBSSIDList[ii].abySSID, pItemSSID->abySSID, pItemSSID->len);
if (WLAN_GET_CAP_INFO_ESS(pBSS->wCapInfo)) {
if (WLAN_GET_CAP_INFO_ESS(pBSS->wCapInfo))
pList->sBSSIDList[ii].byNetType = INFRA;
} else {
else
pList->sBSSIDList[ii].byNetType = ADHOC;
}
if (WLAN_GET_CAP_INFO_PRIVACY(pBSS->wCapInfo)) {

if (WLAN_GET_CAP_INFO_PRIVACY(pBSS->wCapInfo))
pList->sBSSIDList[ii].bWEPOn = true;
} else {
else
pList->sBSSIDList[ii].bWEPOn = false;
}

ii++;
if (ii >= pList->uItem)
break;
Expand Down Expand Up @@ -367,9 +367,9 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
netif_stop_queue(pDevice->dev);

spin_lock_irq(&pDevice->lock);
if (pDevice->bRadioOff == false) {
if (pDevice->bRadioOff == false)
CARDbRadioPowerOff(pDevice);
}

pDevice->bLinkPass = false;
memset(pMgmt->abyCurrBSSID, 0, 6);
pMgmt->eCurrState = WMAC_STATE_IDLE;
Expand Down Expand Up @@ -489,13 +489,12 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
break;
}

if (sStartAPCmd.wBBPType == PHY80211g) {
if (sStartAPCmd.wBBPType == PHY80211g)
pMgmt->byAPBBType = PHY_TYPE_11G;
} else if (sStartAPCmd.wBBPType == PHY80211a) {
else if (sStartAPCmd.wBBPType == PHY80211a)
pMgmt->byAPBBType = PHY_TYPE_11A;
} else {
else
pMgmt->byAPBBType = PHY_TYPE_11B;
}

pItemSSID = (PWLAN_IE_SSID)sStartAPCmd.ssid;
if (pItemSSID->len > WLAN_SSID_MAXLEN + 1)
Expand Down

0 comments on commit 141ebdb

Please sign in to comment.