Commit 27575665 authored by Tim Collier's avatar Tim Collier Committed by Greg Kroah-Hartman

staging: wlan-ng: make switch case block format consistent

For switch statements with case blocks make the format consistent by
applying K&R formatting, a space before the opening brace, single
indentation of contained code, break inside the block and closing
brace aligned with case.
Signed-off-by: default avatarTim Collier <osdevtc@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 04950c3f
...@@ -3605,8 +3605,7 @@ static void hfa384x_usbout_callback(struct urb *urb) ...@@ -3605,8 +3605,7 @@ static void hfa384x_usbout_callback(struct urb *urb)
prism2sta_ev_alloc(wlandev); prism2sta_ev_alloc(wlandev);
break; break;
case -EPIPE: case -EPIPE: {
{
struct hfa384x *hw = wlandev->priv; struct hfa384x *hw = wlandev->priv;
netdev_warn(hw->wlandev->netdev, netdev_warn(hw->wlandev->netdev,
...@@ -3621,8 +3620,7 @@ static void hfa384x_usbout_callback(struct urb *urb) ...@@ -3621,8 +3620,7 @@ static void hfa384x_usbout_callback(struct urb *urb)
case -EPROTO: case -EPROTO:
case -ETIMEDOUT: case -ETIMEDOUT:
case -EILSEQ: case -EILSEQ: {
{
struct hfa384x *hw = wlandev->priv; struct hfa384x *hw = wlandev->priv;
if (!test_and_set_bit if (!test_and_set_bit
......
...@@ -172,7 +172,7 @@ static void p80211req_handlemsg(struct wlandevice *wlandev, ...@@ -172,7 +172,7 @@ static void p80211req_handlemsg(struct wlandevice *wlandev,
struct p80211msg *msg) struct p80211msg *msg)
{ {
switch (msg->msgcode) { switch (msg->msgcode) {
case DIDMSG_LNXREQ_HOSTWEP:{ case DIDMSG_LNXREQ_HOSTWEP: {
struct p80211msg_lnxreq_hostwep *req = struct p80211msg_lnxreq_hostwep *req =
(struct p80211msg_lnxreq_hostwep *)msg; (struct p80211msg_lnxreq_hostwep *)msg;
wlandev->hostwep &= wlandev->hostwep &=
...@@ -185,7 +185,7 @@ static void p80211req_handlemsg(struct wlandevice *wlandev, ...@@ -185,7 +185,7 @@ static void p80211req_handlemsg(struct wlandevice *wlandev,
break; break;
} }
case DIDMSG_DOT11REQ_MIBGET: case DIDMSG_DOT11REQ_MIBGET:
case DIDMSG_DOT11REQ_MIBSET:{ case DIDMSG_DOT11REQ_MIBSET: {
int isget = (msg->msgcode == DIDMSG_DOT11REQ_MIBGET); int isget = (msg->msgcode == DIDMSG_DOT11REQ_MIBGET);
struct p80211msg_dot11req_mibget *mib_msg = struct p80211msg_dot11req_mibget *mib_msg =
(struct p80211msg_dot11req_mibget *)msg; (struct p80211msg_dot11req_mibget *)msg;
...@@ -215,7 +215,7 @@ static void p80211req_mibset_mibget(struct wlandevice *wlandev, ...@@ -215,7 +215,7 @@ static void p80211req_mibset_mibget(struct wlandevice *wlandev,
key, pstr->len); key, pstr->len);
break; break;
case DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID:{ case DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID: {
u32 *data = (u32 *)mibitem->data; u32 *data = (u32 *)mibitem->data;
if (isget) { if (isget) {
...@@ -226,14 +226,14 @@ static void p80211req_mibset_mibget(struct wlandevice *wlandev, ...@@ -226,14 +226,14 @@ static void p80211req_mibset_mibget(struct wlandevice *wlandev,
} }
break; break;
} }
case DIDMIB_DOT11SMT_PRIVACYTABLE_PRIVACYINVOKED:{ case DIDMIB_DOT11SMT_PRIVACYTABLE_PRIVACYINVOKED: {
u32 *data = (u32 *)mibitem->data; u32 *data = (u32 *)mibitem->data;
p80211req_handle_action(wlandev, data, isget, p80211req_handle_action(wlandev, data, isget,
HOSTWEP_PRIVACYINVOKED); HOSTWEP_PRIVACYINVOKED);
break; break;
} }
case DIDMIB_DOT11SMT_PRIVACYTABLE_EXCLUDEUNENCRYPTED:{ case DIDMIB_DOT11SMT_PRIVACYTABLE_EXCLUDEUNENCRYPTED: {
u32 *data = (u32 *)mibitem->data; u32 *data = (u32 *)mibitem->data;
p80211req_handle_action(wlandev, data, isget, p80211req_handle_action(wlandev, data, isget,
......
...@@ -707,7 +707,7 @@ static int prism2mib_priv(struct mibrec *mib, ...@@ -707,7 +707,7 @@ static int prism2mib_priv(struct mibrec *mib,
struct p80211pstrd *pstr = data; struct p80211pstrd *pstr = data;
switch (mib->did) { switch (mib->did) {
case DIDMIB_LNX_CONFIGTABLE_RSNAIE:{ case DIDMIB_LNX_CONFIGTABLE_RSNAIE: {
struct hfa384x_wpa_data wpa; struct hfa384x_wpa_data wpa;
if (isget) { if (isget) {
......
...@@ -336,8 +336,7 @@ static int prism2sta_mlmerequest(struct wlandevice *wlandev, ...@@ -336,8 +336,7 @@ static int prism2sta_mlmerequest(struct wlandevice *wlandev,
*/ */
case DIDMSG_LNXREQ_HOSTWEP: case DIDMSG_LNXREQ_HOSTWEP:
break; /* ignore me. */ break; /* ignore me. */
case DIDMSG_LNXREQ_IFSTATE: case DIDMSG_LNXREQ_IFSTATE: {
{
struct p80211msg_lnxreq_ifstate *ifstatemsg; struct p80211msg_lnxreq_ifstate *ifstatemsg;
pr_debug("Received mlme ifstate request\n"); pr_debug("Received mlme ifstate request\n");
...@@ -349,8 +348,8 @@ static int prism2sta_mlmerequest(struct wlandevice *wlandev, ...@@ -349,8 +348,8 @@ static int prism2sta_mlmerequest(struct wlandevice *wlandev,
P80211ENUM_msgitem_status_data_ok; P80211ENUM_msgitem_status_data_ok;
ifstatemsg->resultcode.data = result; ifstatemsg->resultcode.data = result;
result = 0; result = 0;
}
break; break;
}
case DIDMSG_LNXREQ_WLANSNIFF: case DIDMSG_LNXREQ_WLANSNIFF:
pr_debug("Received mlme wlansniff request\n"); pr_debug("Received mlme wlansniff request\n");
result = prism2mgmt_wlansniff(wlandev, msg); result = prism2mgmt_wlansniff(wlandev, msg);
...@@ -359,7 +358,7 @@ static int prism2sta_mlmerequest(struct wlandevice *wlandev, ...@@ -359,7 +358,7 @@ static int prism2sta_mlmerequest(struct wlandevice *wlandev,
pr_debug("Received mlme autojoin request\n"); pr_debug("Received mlme autojoin request\n");
result = prism2mgmt_autojoin(wlandev, msg); result = prism2mgmt_autojoin(wlandev, msg);
break; break;
case DIDMSG_LNXREQ_COMMSQUALITY:{ case DIDMSG_LNXREQ_COMMSQUALITY: {
struct p80211msg_lnxreq_commsquality *qualmsg; struct p80211msg_lnxreq_commsquality *qualmsg;
pr_debug("Received commsquality request\n"); pr_debug("Received commsquality request\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment