mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
qcacld-3.0: Replace camelCase in struct p2p_app_set_ps
The Linux Coding Style frowns upon mixed-case names so rename members ctWindow and psSelection in struct p2p_app_set_ps to be compliant. Change-Id: If5156a8dd6203fb530a164447d458ac3e55e233a CRs-Fixed: 2422192
This commit is contained in:
parent
ba59972e3b
commit
cc9c7bbbc1
4 changed files with 16 additions and 16 deletions
|
|
@ -1130,8 +1130,8 @@ struct hdd_adapter {
|
|||
struct wireless_dev wdev;
|
||||
|
||||
/** ops checks if Opportunistic Power Save is Enable or Not
|
||||
* ctw stores ctWindow value once we receive Opps command from
|
||||
* wpa_supplicant then using ctWindow value we need to Enable
|
||||
* ctw stores CT Window value once we receive Opps command from
|
||||
* wpa_supplicant then using CT Window value we need to Enable
|
||||
* Opportunistic Power Save
|
||||
*/
|
||||
uint8_t ops;
|
||||
|
|
|
|||
|
|
@ -35,12 +35,12 @@
|
|||
|
||||
struct p2p_app_set_ps {
|
||||
uint8_t opp_ps;
|
||||
uint32_t ctWindow;
|
||||
uint32_t ct_window;
|
||||
uint8_t count;
|
||||
uint32_t duration;
|
||||
uint32_t interval;
|
||||
uint32_t single_noa_duration;
|
||||
uint8_t psSelection;
|
||||
uint8_t ps_selection;
|
||||
};
|
||||
|
||||
int wlan_hdd_cfg80211_remain_on_channel(struct wiphy *wiphy,
|
||||
|
|
|
|||
|
|
@ -432,9 +432,9 @@ int hdd_set_p2p_noa(struct net_device *dev, uint8_t *command)
|
|||
noa.count = count;
|
||||
noa.vdev_id = adapter->vdev_id;
|
||||
|
||||
hdd_debug("P2P_PS_ATTR:oppPS %d ctWindow %d duration %d "
|
||||
hdd_debug("P2P_PS_ATTR:opp ps %d ct window %d duration %d "
|
||||
"interval %d count %d single noa duration %d "
|
||||
"PsSelection %x", noa.opp_ps,
|
||||
"ps selection %x", noa.opp_ps,
|
||||
noa.ct_window, noa.duration, noa.interval,
|
||||
noa.count, noa.single_noa_duration, noa.ps_selection);
|
||||
|
||||
|
|
@ -507,10 +507,10 @@ int hdd_set_p2p_opps(struct net_device *dev, uint8_t *command)
|
|||
* Opportunistic Power Save (1)
|
||||
*/
|
||||
|
||||
/* From wpa_cli user need to use separate command to set ctWindow and
|
||||
* Opps when user want to set ctWindow during that time other parameters
|
||||
* values are coming from wpa_supplicant as -1.
|
||||
* Example : User want to set ctWindow with 30 then wpa_cli command :
|
||||
/* From wpa_cli user need to use separate command to set ct_window
|
||||
* and Opps when user want to set ct_window during that time other
|
||||
* parameters values are coming from wpa_supplicant as -1.
|
||||
* Example : User want to set ct_window with 30 then wpa_cli command :
|
||||
* P2P_SET ctwindow 30
|
||||
* Command Received at hdd_hostapd_ioctl is as below:
|
||||
* P2P_SET_PS -1 -1 30 (legacy_ps = -1, opp_ps = -1, ctwindow = 30)
|
||||
|
|
@ -543,7 +543,7 @@ int hdd_set_p2p_opps(struct net_device *dev, uint8_t *command)
|
|||
noa.ps_selection = P2P_POWER_SAVE_TYPE_OPPORTUNISTIC;
|
||||
noa.vdev_id = adapter->vdev_id;
|
||||
|
||||
hdd_debug("P2P_PS_ATTR: oppPS %d ctWindow %d duration %d interval %d count %d single noa duration %d PsSelection %x",
|
||||
hdd_debug("P2P_PS_ATTR: opp ps %d ct window %d duration %d interval %d count %d single noa duration %d ps selection %x",
|
||||
noa.opp_ps, noa.ct_window,
|
||||
noa.duration, noa.interval, noa.count,
|
||||
noa.single_noa_duration,
|
||||
|
|
@ -562,12 +562,12 @@ int hdd_set_p2p_ps(struct net_device *dev, void *msgData)
|
|||
struct p2p_app_set_ps *pappnoa = (struct p2p_app_set_ps *) msgData;
|
||||
|
||||
noa.opp_ps = pappnoa->opp_ps;
|
||||
noa.ct_window = pappnoa->ctWindow;
|
||||
noa.ct_window = pappnoa->ct_window;
|
||||
noa.duration = pappnoa->duration;
|
||||
noa.interval = pappnoa->interval;
|
||||
noa.count = pappnoa->count;
|
||||
noa.single_noa_duration = pappnoa->single_noa_duration;
|
||||
noa.ps_selection = pappnoa->psSelection;
|
||||
noa.ps_selection = pappnoa->ps_selection;
|
||||
noa.vdev_id = adapter->vdev_id;
|
||||
|
||||
return wlan_hdd_set_power_save(adapter, &noa);
|
||||
|
|
|
|||
|
|
@ -7895,14 +7895,14 @@ static int __iw_set_var_ints_getnone(struct net_device *dev,
|
|||
}
|
||||
|
||||
p2p_noa.opp_ps = apps_args[0];
|
||||
p2p_noa.ctWindow = apps_args[1];
|
||||
p2p_noa.ct_window = apps_args[1];
|
||||
p2p_noa.duration = apps_args[2];
|
||||
p2p_noa.interval = apps_args[3];
|
||||
p2p_noa.count = apps_args[4];
|
||||
p2p_noa.single_noa_duration = apps_args[5];
|
||||
p2p_noa.psSelection = apps_args[6];
|
||||
p2p_noa.ps_selection = apps_args[6];
|
||||
|
||||
hdd_debug("P2P_NOA_ATTR:oppPS %d ctWindow %d duration %d interval %d count %d single noa duration %d PsSelection %x",
|
||||
hdd_debug("P2P_NOA_ATTR:opp ps %d ct window %d duration %d interval %d count %d single noa duration %d ps selection %x",
|
||||
apps_args[0], apps_args[1], apps_args[2],
|
||||
apps_args[3], apps_args[4],
|
||||
apps_args[5], apps_args[6]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue