staging: wilc1000: rename pstrCfgParamVal varaible in set_wiphy_params()
This is a cleanup patch to fix camelCase issue found by checkpatch.pl script. In this patch, renamed pstrCfgParamVal to cfg_param_val to avoid camelCase for variable name. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8ed313f1cd
commit
d88af777ac
|
@ -1234,34 +1234,34 @@ static int change_bss(struct wiphy *wiphy, struct net_device *dev,
|
||||||
static int set_wiphy_params(struct wiphy *wiphy, u32 changed)
|
static int set_wiphy_params(struct wiphy *wiphy, u32 changed)
|
||||||
{
|
{
|
||||||
s32 ret = 0;
|
s32 ret = 0;
|
||||||
struct cfg_param_attr pstrCfgParamVal;
|
struct cfg_param_attr cfg_param_val;
|
||||||
struct wilc_priv *priv;
|
struct wilc_priv *priv;
|
||||||
struct wilc_vif *vif;
|
struct wilc_vif *vif;
|
||||||
|
|
||||||
priv = wiphy_priv(wiphy);
|
priv = wiphy_priv(wiphy);
|
||||||
vif = netdev_priv(priv->dev);
|
vif = netdev_priv(priv->dev);
|
||||||
|
|
||||||
pstrCfgParamVal.flag = 0;
|
cfg_param_val.flag = 0;
|
||||||
|
|
||||||
if (changed & WIPHY_PARAM_RETRY_SHORT) {
|
if (changed & WIPHY_PARAM_RETRY_SHORT) {
|
||||||
pstrCfgParamVal.flag |= RETRY_SHORT;
|
cfg_param_val.flag |= RETRY_SHORT;
|
||||||
pstrCfgParamVal.short_retry_limit = priv->dev->ieee80211_ptr->wiphy->retry_short;
|
cfg_param_val.short_retry_limit = priv->dev->ieee80211_ptr->wiphy->retry_short;
|
||||||
}
|
}
|
||||||
if (changed & WIPHY_PARAM_RETRY_LONG) {
|
if (changed & WIPHY_PARAM_RETRY_LONG) {
|
||||||
pstrCfgParamVal.flag |= RETRY_LONG;
|
cfg_param_val.flag |= RETRY_LONG;
|
||||||
pstrCfgParamVal.long_retry_limit = priv->dev->ieee80211_ptr->wiphy->retry_long;
|
cfg_param_val.long_retry_limit = priv->dev->ieee80211_ptr->wiphy->retry_long;
|
||||||
}
|
}
|
||||||
if (changed & WIPHY_PARAM_FRAG_THRESHOLD) {
|
if (changed & WIPHY_PARAM_FRAG_THRESHOLD) {
|
||||||
pstrCfgParamVal.flag |= FRAG_THRESHOLD;
|
cfg_param_val.flag |= FRAG_THRESHOLD;
|
||||||
pstrCfgParamVal.frag_threshold = priv->dev->ieee80211_ptr->wiphy->frag_threshold;
|
cfg_param_val.frag_threshold = priv->dev->ieee80211_ptr->wiphy->frag_threshold;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (changed & WIPHY_PARAM_RTS_THRESHOLD) {
|
if (changed & WIPHY_PARAM_RTS_THRESHOLD) {
|
||||||
pstrCfgParamVal.flag |= RTS_THRESHOLD;
|
cfg_param_val.flag |= RTS_THRESHOLD;
|
||||||
pstrCfgParamVal.rts_threshold = priv->dev->ieee80211_ptr->wiphy->rts_threshold;
|
cfg_param_val.rts_threshold = priv->dev->ieee80211_ptr->wiphy->rts_threshold;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = wilc_hif_set_cfg(vif, &pstrCfgParamVal);
|
ret = wilc_hif_set_cfg(vif, &cfg_param_val);
|
||||||
if (ret)
|
if (ret)
|
||||||
netdev_err(priv->dev, "Error in setting WIPHY PARAMS\n");
|
netdev_err(priv->dev, "Error in setting WIPHY PARAMS\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue