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

Commit 14b40d92 authored by Mateusz Kulikowski's avatar Mateusz Kulikowski Committed by Greg Kroah-Hartman
Browse files

staging: rtl8192e: Comment cleanup (style/format)



- Multiline comments use "network subsystem comment style"
- Merge short multiline comments
- Remove empty comments
- Remove function name comment at the end of small (<1 screen) functions
- Reformat 802.11 data frame format to use spaces and network format

Signed-off-by: default avatarMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e725fb6f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -165,7 +165,7 @@ static void cmdpkt_beacontimerinterrupt_819xusb(struct net_device *dev)

static void cmpk_handle_interrupt_status(struct net_device *dev, u8 *pmsg)
{
	struct cmpk_intr_sta rx_intr_status;	/* */
	struct cmpk_intr_sta rx_intr_status;
	struct r8192_priv *priv = rtllib_priv(dev);

	DMESG("---> cmpk_Handle_Interrupt_Status()\n");
+15 −15
Original line number Diff line number Diff line
@@ -33,28 +33,28 @@
struct cmpk_txfb {
	u8	element_id;
	u8	length;
	u8	TID:4;				/* */
	u8	fail_reason:3;		/* */
	u8	TID:4;
	u8	fail_reason:3;
	u8	tok:1;
	u8	reserve1:4;			/* */
	u8	pkt_type:2;		/* */
	u8	bandwidth:1;		/* */
	u8	qos_pkt:1;			/* */
	u8	reserve1:4;
	u8	pkt_type:2;
	u8	bandwidth:1;
	u8	qos_pkt:1;

	u8	reserve2;			/* */
	u8	retry_cnt;			/* */
	u16	pkt_id;				/* */
	u8	reserve2;
	u8	retry_cnt;
	u16	pkt_id;

	u16	seq_num;			/* */
	u16	seq_num;
	u8	s_rate;
	u8	f_rate;

	u8	s_rts_rate;			/* */
	u8	f_rts_rate;			/* */
	u16	pkt_length;			/* */
	u8	s_rts_rate;
	u8	f_rts_rate;
	u16	pkt_length;

	u16	reserve3;			/* */
	u16	duration;			/* */
	u16	reserve3;
	u16	duration;
};

struct cmpk_intr_sta {
+2 −2
Original line number Diff line number Diff line
@@ -304,7 +304,7 @@ static u32 phy_FwRFSerialRead(struct net_device *dev,
	}
	return read_nic_dword(dev, RF_DATA);

}	/* phy_FwRFSerialRead */
}

static void phy_FwRFSerialWrite(struct net_device *dev,
				enum rf90_radio_path eRFPath,
@@ -325,7 +325,7 @@ static void phy_FwRFSerialWrite(struct net_device *dev,
	}
	write_nic_dword(dev, QPNR, Data);

}	/* phy_FwRFSerialWrite */
}


void rtl8192_phy_configmac(struct net_device *dev)
+2 −1
Original line number Diff line number Diff line
@@ -2332,7 +2332,8 @@ static void rtl8192_rx_normal(struct net_device *dev)
			goto done;
		new_skb = dev_alloc_skb(priv->rxbuffersize);
		/* if allocation of new skb failed - drop current packet
		* and reuse skb */
		 * and reuse skb
		 */
		if (unlikely(!new_skb))
			goto done;

+2 −3
Original line number Diff line number Diff line
@@ -1221,11 +1221,10 @@ static iw_handler r8192_wx_handlers[] = {
	IW_IOCTL(SIOCSIWENCODEEXT) = r8192_wx_set_enc_ext,
};

/*
 * the following rule need to be following,
/* the following rule need to be following,
 * Odd : get (world access),
 * even : set (root access)
 * */
 */
static const struct iw_priv_args r8192_private_args[] = {
	{
		SIOCIWFIRSTPRIV + 0x0,
Loading