diff options
author | Ujjal Roy <royujjal@gmail.com> | 2014-01-14 22:22:22 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-01-16 14:55:43 -0500 |
commit | f862bfd1837c36efbb7f3475dbd409ce86edb080 (patch) | |
tree | db6aa2bb161a155ab006509b1e7937950216ada3 | |
parent | 1e202242ee1432d68a8bea4919b2ae0ef19d9e06 (diff) |
mwifiex: export threshold value and retry limit to cfg80211
While registering the driver with cfg80211, update the threshold
value and retry limit to cfg80211.
Signed-off-by: Ujjal Roy <royujjal@gmail.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/mwifiex/cfg80211.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index e7c81abf108e..f37b403e83d0 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c | |||
@@ -2677,6 +2677,7 @@ int mwifiex_register_cfg80211(struct mwifiex_adapter *adapter) | |||
2677 | struct wiphy *wiphy; | 2677 | struct wiphy *wiphy; |
2678 | struct mwifiex_private *priv = adapter->priv[MWIFIEX_BSS_TYPE_STA]; | 2678 | struct mwifiex_private *priv = adapter->priv[MWIFIEX_BSS_TYPE_STA]; |
2679 | u8 *country_code; | 2679 | u8 *country_code; |
2680 | u32 thr, retry; | ||
2680 | 2681 | ||
2681 | /* create a new wiphy for use with cfg80211 */ | 2682 | /* create a new wiphy for use with cfg80211 */ |
2682 | wiphy = wiphy_new(&mwifiex_cfg80211_ops, | 2683 | wiphy = wiphy_new(&mwifiex_cfg80211_ops, |
@@ -2766,6 +2767,19 @@ int mwifiex_register_cfg80211(struct mwifiex_adapter *adapter) | |||
2766 | country_code); | 2767 | country_code); |
2767 | } | 2768 | } |
2768 | 2769 | ||
2770 | mwifiex_send_cmd_sync(priv, HostCmd_CMD_802_11_SNMP_MIB, | ||
2771 | HostCmd_ACT_GEN_GET, FRAG_THRESH_I, &thr); | ||
2772 | wiphy->frag_threshold = thr; | ||
2773 | mwifiex_send_cmd_sync(priv, HostCmd_CMD_802_11_SNMP_MIB, | ||
2774 | HostCmd_ACT_GEN_GET, RTS_THRESH_I, &thr); | ||
2775 | wiphy->rts_threshold = thr; | ||
2776 | mwifiex_send_cmd_sync(priv, HostCmd_CMD_802_11_SNMP_MIB, | ||
2777 | HostCmd_ACT_GEN_GET, SHORT_RETRY_LIM_I, &retry); | ||
2778 | wiphy->retry_short = (u8) retry; | ||
2779 | mwifiex_send_cmd_sync(priv, HostCmd_CMD_802_11_SNMP_MIB, | ||
2780 | HostCmd_ACT_GEN_GET, LONG_RETRY_LIM_I, &retry); | ||
2781 | wiphy->retry_long = (u8) retry; | ||
2782 | |||
2769 | adapter->wiphy = wiphy; | 2783 | adapter->wiphy = wiphy; |
2770 | return ret; | 2784 | return ret; |
2771 | } | 2785 | } |