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

Commit 44f46c7e authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman
Browse files

staging: wilc1000: rename pstrWFIDrv to wfi_drv to avoid camelCase naming



This is cleanup patch, it fixes "Avoid CamelCase: <pstrWFIDrv>"
issue found by checkpatch.pl

Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8c9fee22
Loading
Loading
Loading
Loading
+18 −18
Original line number Original line Diff line number Diff line
@@ -656,19 +656,19 @@ static int connect(struct wiphy *wiphy, struct net_device *dev,
	enum AUTHTYPE tenuAuth_type = ANY;
	enum AUTHTYPE tenuAuth_type = ANY;


	struct wilc_priv *priv;
	struct wilc_priv *priv;
	struct host_if_drv *pstrWFIDrv;
	struct host_if_drv *wfi_drv;
	struct network_info *pstrNetworkInfo = NULL;
	struct network_info *pstrNetworkInfo = NULL;
	struct wilc_vif *vif;
	struct wilc_vif *vif;


	wilc_connecting = 1;
	wilc_connecting = 1;
	priv = wiphy_priv(wiphy);
	priv = wiphy_priv(wiphy);
	vif = netdev_priv(priv->dev);
	vif = netdev_priv(priv->dev);
	pstrWFIDrv = (struct host_if_drv *)priv->hif_drv;
	wfi_drv = (struct host_if_drv *)priv->hif_drv;


	if (!(strncmp(sme->ssid, "DIRECT-", 7)))
	if (!(strncmp(sme->ssid, "DIRECT-", 7)))
		pstrWFIDrv->p2p_connect = 1;
		wfi_drv->p2p_connect = 1;
	else
	else
		pstrWFIDrv->p2p_connect = 0;
		wfi_drv->p2p_connect = 0;


	for (i = 0; i < last_scanned_cnt; i++) {
	for (i = 0; i < last_scanned_cnt; i++) {
		if ((sme->ssid_len == last_scanned_shadow[i].ssid_len) &&
		if ((sme->ssid_len == last_scanned_shadow[i].ssid_len) &&
@@ -787,7 +787,7 @@ static int connect(struct wiphy *wiphy, struct net_device *dev,


	curr_channel = pstrNetworkInfo->ch;
	curr_channel = pstrNetworkInfo->ch;


	if (!pstrWFIDrv->p2p_connect)
	if (!wfi_drv->p2p_connect)
		wlan_channel = pstrNetworkInfo->ch;
		wlan_channel = pstrNetworkInfo->ch;


	wilc_wlan_set_bssid(dev, pstrNetworkInfo->bssid, STATION_MODE);
	wilc_wlan_set_bssid(dev, pstrNetworkInfo->bssid, STATION_MODE);
@@ -812,7 +812,7 @@ static int disconnect(struct wiphy *wiphy, struct net_device *dev, u16 reason_co
{
{
	s32 ret = 0;
	s32 ret = 0;
	struct wilc_priv *priv;
	struct wilc_priv *priv;
	struct host_if_drv *pstrWFIDrv;
	struct host_if_drv *wfi_drv;
	struct wilc_vif *vif;
	struct wilc_vif *vif;
	struct wilc *wilc;
	struct wilc *wilc;
	u8 NullBssid[ETH_ALEN] = {0};
	u8 NullBssid[ETH_ALEN] = {0};
@@ -831,15 +831,15 @@ static int disconnect(struct wiphy *wiphy, struct net_device *dev, u16 reason_co
		return 0;
		return 0;
	}
	}


	pstrWFIDrv = (struct host_if_drv *)priv->hif_drv;
	wfi_drv = (struct host_if_drv *)priv->hif_drv;
	if (!pstrWFIDrv->p2p_connect)
	if (!wfi_drv->p2p_connect)
		wlan_channel = INVALID_CHANNEL;
		wlan_channel = INVALID_CHANNEL;
	wilc_wlan_set_bssid(priv->dev, NullBssid, STATION_MODE);
	wilc_wlan_set_bssid(priv->dev, NullBssid, STATION_MODE);


	p2p_local_random = 0x01;
	p2p_local_random = 0x01;
	p2p_recv_random = 0x00;
	p2p_recv_random = 0x00;
	wilc_ie = false;
	wilc_ie = false;
	pstrWFIDrv->p2p_timeout = 0;
	wfi_drv->p2p_timeout = 0;


	ret = wilc_disconnect(vif, reason_code);
	ret = wilc_disconnect(vif, reason_code);
	if (ret != 0) {
	if (ret != 0) {
@@ -1425,12 +1425,12 @@ void WILC_WFI_p2p_rx(struct net_device *dev, u8 *buff, u32 size)
{
{
	struct wilc_priv *priv;
	struct wilc_priv *priv;
	u32 header, pkt_offset;
	u32 header, pkt_offset;
	struct host_if_drv *pstrWFIDrv;
	struct host_if_drv *wfi_drv;
	u32 i = 0;
	u32 i = 0;
	s32 s32Freq;
	s32 s32Freq;


	priv = wiphy_priv(dev->ieee80211_ptr->wiphy);
	priv = wiphy_priv(dev->ieee80211_ptr->wiphy);
	pstrWFIDrv = (struct host_if_drv *)priv->hif_drv;
	wfi_drv = (struct host_if_drv *)priv->hif_drv;


	memcpy(&header, (buff - HOST_HDR_OFFSET), HOST_HDR_OFFSET);
	memcpy(&header, (buff - HOST_HDR_OFFSET), HOST_HDR_OFFSET);


@@ -1451,7 +1451,7 @@ void WILC_WFI_p2p_rx(struct net_device *dev, u8 *buff, u32 size)
		s32Freq = ieee80211_channel_to_frequency(curr_channel, NL80211_BAND_2GHZ);
		s32Freq = ieee80211_channel_to_frequency(curr_channel, NL80211_BAND_2GHZ);


		if (ieee80211_is_action(buff[FRAME_TYPE_ID])) {
		if (ieee80211_is_action(buff[FRAME_TYPE_ID])) {
			if (priv->cfg_scanning && time_after_eq(jiffies, (unsigned long)pstrWFIDrv->p2p_timeout)) {
			if (priv->cfg_scanning && time_after_eq(jiffies, (unsigned long)wfi_drv->p2p_timeout)) {
				netdev_dbg(dev, "Receiving action wrong ch\n");
				netdev_dbg(dev, "Receiving action wrong ch\n");
				return;
				return;
			}
			}
@@ -1604,14 +1604,14 @@ static int mgmt_tx(struct wiphy *wiphy,
	const struct ieee80211_mgmt *mgmt;
	const struct ieee80211_mgmt *mgmt;
	struct p2p_mgmt_data *mgmt_tx;
	struct p2p_mgmt_data *mgmt_tx;
	struct wilc_priv *priv;
	struct wilc_priv *priv;
	struct host_if_drv *pstrWFIDrv;
	struct host_if_drv *wfi_drv;
	u32 i;
	u32 i;
	struct wilc_vif *vif;
	struct wilc_vif *vif;
	u32 buf_len = len + sizeof(p2p_vendor_spec) + sizeof(p2p_local_random);
	u32 buf_len = len + sizeof(p2p_vendor_spec) + sizeof(p2p_local_random);


	vif = netdev_priv(wdev->netdev);
	vif = netdev_priv(wdev->netdev);
	priv = wiphy_priv(wiphy);
	priv = wiphy_priv(wiphy);
	pstrWFIDrv = (struct host_if_drv *)priv->hif_drv;
	wfi_drv = (struct host_if_drv *)priv->hif_drv;


	*cookie = (unsigned long)buf;
	*cookie = (unsigned long)buf;
	priv->tx_cookie = *cookie;
	priv->tx_cookie = *cookie;
@@ -1695,7 +1695,7 @@ static int mgmt_tx(struct wiphy *wiphy,
				}
				}
			}
			}


			pstrWFIDrv->p2p_timeout = (jiffies + msecs_to_jiffies(wait));
			wfi_drv->p2p_timeout = (jiffies + msecs_to_jiffies(wait));
		}
		}


		wilc_wlan_txq_add_mgmt_pkt(wdev->netdev, mgmt_tx,
		wilc_wlan_txq_add_mgmt_pkt(wdev->netdev, mgmt_tx,
@@ -1710,11 +1710,11 @@ static int mgmt_tx_cancel_wait(struct wiphy *wiphy,
			       u64 cookie)
			       u64 cookie)
{
{
	struct wilc_priv *priv;
	struct wilc_priv *priv;
	struct host_if_drv *pstrWFIDrv;
	struct host_if_drv *wfi_drv;


	priv = wiphy_priv(wiphy);
	priv = wiphy_priv(wiphy);
	pstrWFIDrv = (struct host_if_drv *)priv->hif_drv;
	wfi_drv = (struct host_if_drv *)priv->hif_drv;
	pstrWFIDrv->p2p_timeout = jiffies;
	wfi_drv->p2p_timeout = jiffies;


	if (!priv->p2p_listen_state) {
	if (!priv->p2p_listen_state) {
		cfg80211_remain_on_channel_expired(priv->wdev,
		cfg80211_remain_on_channel_expired(priv->wdev,