Skip to contentSkip to conversation

mwifiex: Fixed incorrect indentation issue

PATCH In review Ujjal Roy 4 participants 10 messages Feb 11, 2016 – Feb 24, 2016 Marvell mwifiex wireless driver

lore
Share & tools
lore

Ujjal Roy

author
#0 lore raw

PATCH 1/3 mwifiex: Fixed incorrect indentation issue

This patch fixes the incorrect indentation of the case label.

---
 drivers/net/wireless/marvell/mwifiex/cfg80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/marvell/mwifiex/cfg80211.c +1 -1
index e7adef7..cb0cf03 100644
@@ -676,7 +676,7 @@ mwifiex_cfg80211_set_wiphy_params(struct wiphy *wiphy, u32 changed)
 		}
 		break;
 
-		case MWIFIEX_BSS_ROLE_STA:
+	case MWIFIEX_BSS_ROLE_STA:
 		if (priv->media_connected) {
 			mwifiex_dbg(adapter, ERROR,
 				    "cannot change wiphy params when connected");

--
1.9.1

author
#1 lore raw

PATCH 2/3 mwifiex: Removed extra spaces before commas

This patch fixes spaces before commas issue in coding style.

---
 drivers/net/wireless/marvell/mwifiex/pcie.c    | 2 +-
 drivers/net/wireless/marvell/mwifiex/uap_cmd.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/marvell/mwifiex/pcie.c +1 -1
index 6d0dc40..4d29cce 100644
@@ -1408,7 +1408,7 @@ mwifiex_pcie_send_boot_cmd(struct mwifiex_adapter *adapter, struct sk_buff *skb)
 		return -1;
 	}
 
-	if (mwifiex_map_pci_memory(adapter, skb, skb->len , PCI_DMA_TODEVICE))
+	if (mwifiex_map_pci_memory(adapter, skb, skb->len, PCI_DMA_TODEVICE))
 		return -1;
 
 	buf_pa = MWIFIEX_SKB_DMA_ADDR(skb);
drivers/net/wireless/marvell/mwifiex/uap_cmd.c +1 -1
index e791166..16d95b2 100644
@@ -192,7 +192,7 @@ mwifiex_set_ht_params(struct mwifiex_private *priv,
 		}
 		priv->ap_11n_enabled = 1;
 	} else {
-		memset(&bss_cfg->ht_cap , 0, sizeof(struct ieee80211_ht_cap));
+		memset(&bss_cfg->ht_cap, 0, sizeof(struct ieee80211_ht_cap));
 		bss_cfg->ht_cap.cap_info = cpu_to_le16(MWIFIEX_DEF_HT_CAP);
 		bss_cfg->ht_cap.ampdu_params_info = MWIFIEX_DEF_AMPDU;
 	}

--
1.9.1

Reviewed-by on v1 2/3
#2 lore raw

Re: [PATCH 2/3] mwifiex: Removed extra spaces before commas

Hi All,

Quoted 3 lines · Ujjal Roy

This patch fixes spaces before commas issue in coding style.

Looks right to me.

Thanks,

Quoted 38 lines
---
 drivers/net/wireless/marvell/mwifiex/pcie.c    | 2 +-
 drivers/net/wireless/marvell/mwifiex/uap_cmd.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/marvell/mwifiex/pcie.c +1 -1
index 6d0dc40..4d29cce 100644
@@ -1408,7 +1408,7 @@ mwifiex_pcie_send_boot_cmd(struct mwifiex_adapter *adapter, struct sk_buff *skb)
                return -1;
        }
 
-       if (mwifiex_map_pci_memory(adapter, skb, skb->len , PCI_DMA_TODEVICE))
+       if (mwifiex_map_pci_memory(adapter, skb, skb->len, PCI_DMA_TODEVICE))
                return -1;
 
        buf_pa = MWIFIEX_SKB_DMA_ADDR(skb);
drivers/net/wireless/marvell/mwifiex/uap_cmd.c +1 -2
index e791166..16d95b2 100644
@@ -192,7 +192,7 @@ mwifiex_set_ht_params(struct mwifiex_private *priv,
                }
                priv->ap_11n_enabled = 1;
        } else {
-               memset(&bss_cfg->ht_cap , 0, sizeof(struct ieee80211_ht_cap));
+               memset(&bss_cfg->ht_cap, 0, sizeof(struct ieee80211_ht_cap));
                bss_cfg->ht_cap.cap_info = cpu_to_le16(MWIFIEX_DEF_HT_CAP);
                bss_cfg->ht_cap.ampdu_params_info = MWIFIEX_DEF_AMPDU;
        }
--

1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 4 lines
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/
author
#3 lore raw

PATCH 3/3 mwifiex: Added missing spaces around brackets

In reply to Ujjal Roy

This patch fixes the missing spaces issue in coding style.

---
 drivers/net/wireless/marvell/mwifiex/usb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/marvell/mwifiex/usb.c +2 -2
index e43aff9..0510861 100644
@@ -244,9 +244,9 @@ setup_for_next:
 	if (card->rx_cmd_ep == context->ep) {
 		mwifiex_usb_submit_rx_urb(context, size);
 	} else {
-		if (atomic_read(&adapter->rx_pending) <= HIGH_RX_PENDING){
+		if (atomic_read(&adapter->rx_pending) <= HIGH_RX_PENDING) {
 			mwifiex_usb_submit_rx_urb(context, size);
-		}else{
+		} else {
 			context->skb = NULL;
 		}
 	}

--
1.9.1

Reviewed-by on v1 3/3
#4 lore raw

Re: [PATCH 3/3] mwifiex: Added missing spaces around brackets

Hi All,

Quoted 3 lines · Ujjal Roy

This patch fixes the missing spaces issue in coding style.

Looks right to me.

Thanks,

Quoted 27 lines
---
 drivers/net/wireless/marvell/mwifiex/usb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/marvell/mwifiex/usb.c +2 -3
index e43aff9..0510861 100644
@@ -244,9 +244,9 @@ setup_for_next:
        if (card->rx_cmd_ep == context->ep) {
                mwifiex_usb_submit_rx_urb(context, size);
        } else {
-               if (atomic_read(&adapter->rx_pending) <= HIGH_RX_PENDING){
+               if (atomic_read(&adapter->rx_pending) <= HIGH_RX_PENDING) {
                        mwifiex_usb_submit_rx_urb(context, size);
-               }else{
+               } else {
                        context->skb = NULL;
                }
        }
--

1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 4 lines
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/
#5 lore raw

Re: [PATCH 3/3] mwifiex: Added missing spaces around brackets

In reply to Ujjal Roy

Looks fine.

Quoted 26 lines · Ujjal Roy

This patch fixes the missing spaces issue in coding style.

---
 drivers/net/wireless/marvell/mwifiex/usb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/marvell/mwifiex/usb.c +2 -3
index e43aff9..0510861 100644
@@ -244,9 +244,9 @@ setup_for_next:
        if (card->rx_cmd_ep == context->ep) {
                mwifiex_usb_submit_rx_urb(context, size);
        } else {
-               if (atomic_read(&adapter->rx_pending) <= HIGH_RX_PENDING){
+               if (atomic_read(&adapter->rx_pending) <= HIGH_RX_PENDING) {
                        mwifiex_usb_submit_rx_urb(context, size);
-               }else{
+               } else {
                        context->skb = NULL;
                }
        }
--

1.9.1

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

-Souptick

author
#7 lore raw
Quoted 9 lines · Kalle Valo
Quoted 3 lines · Ujjal Roy

This patch fixes the incorrect indentation of the case label.

A changelog is always recommended to have. Also for some reason your name in patchwork is all caps:

Quoted 8 lines

Submitter UJJAL ROY

https://patchwork.kernel.org/patch/8276851/

Please try to fix that, but I don't know if that's even possible.

--
Kalle Valo

I checked that and unable to change the name. If you have any suggestion please share with me.

Thanks,
UjjaL Roy

author
#8 lore raw
In reply to Kalle Valo

I have sent all the patches again with my name in CAPITAL letter. Please have a look.

Thanks,
UjjaL Roy

Quoted 17 lines · Kalle Valo
Quoted 3 lines · Ujjal Roy

This patch fixes the incorrect indentation of the case label.

A changelog is always recommended to have. Also for some reason your name in patchwork is all caps:

Submitter UJJAL ROY

https://patchwork.kernel.org/patch/8276851/

Please try to fix that, but I don't know if that's even possible.

--
Kalle Valo

Reviewed-by on v1 1/3
#9 lore raw
In reply to Ujjal Roy

Hi All,

Quoted 3 lines · Ujjal Roy

This patch fixes the incorrect indentation of the case label.

Looks right to me.

Thanks,

Quoted 24 lines
---
 drivers/net/wireless/marvell/mwifiex/cfg80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/marvell/mwifiex/cfg80211.c +1 -2
index e7adef7..cb0cf03 100644
@@ -676,7 +676,7 @@ mwifiex_cfg80211_set_wiphy_params(struct wiphy *wiphy, u32 changed)
                }
                break;
 
-               case MWIFIEX_BSS_ROLE_STA:
+       case MWIFIEX_BSS_ROLE_STA:
                if (priv->media_connected) {
                        mwifiex_dbg(adapter, ERROR,
                                    "cannot change wiphy params when connected");
--

1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 4 lines
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/