提交 1cd91b2c 编写于 作者: G Guy Mishol 提交者: Kalle Valo

wlcore: add dfs region to reg domain update cmd

Add dfs region to the reg domain channel update command.
Signed-off-by: NGuy Mishol <guym@ti.com>
Signed-off-by: NEliad Peller <eliad@wizery.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 4ce9fad3
...@@ -1736,6 +1736,7 @@ int wlcore_cmd_regdomain_config_locked(struct wl1271 *wl) ...@@ -1736,6 +1736,7 @@ int wlcore_cmd_regdomain_config_locked(struct wl1271 *wl)
cmd->ch_bit_map1 = cpu_to_le32(tmp_ch_bitmap[0]); cmd->ch_bit_map1 = cpu_to_le32(tmp_ch_bitmap[0]);
cmd->ch_bit_map2 = cpu_to_le32(tmp_ch_bitmap[1]); cmd->ch_bit_map2 = cpu_to_le32(tmp_ch_bitmap[1]);
cmd->dfs_region = wl->dfs_region;
wl1271_debug(DEBUG_CMD, wl1271_debug(DEBUG_CMD,
"cmd reg domain bitmap1: 0x%08x, bitmap2: 0x%08x", "cmd reg domain bitmap1: 0x%08x, bitmap2: 0x%08x",
......
...@@ -648,6 +648,8 @@ struct wl12xx_cmd_regdomain_dfs_config { ...@@ -648,6 +648,8 @@ struct wl12xx_cmd_regdomain_dfs_config {
__le32 ch_bit_map1; __le32 ch_bit_map1;
__le32 ch_bit_map2; __le32 ch_bit_map2;
u8 dfs_region;
u8 padding[3];
} __packed; } __packed;
struct wl12xx_cmd_config_fwlog { struct wl12xx_cmd_config_fwlog {
......
...@@ -82,6 +82,10 @@ static void wl1271_reg_notify(struct wiphy *wiphy, ...@@ -82,6 +82,10 @@ static void wl1271_reg_notify(struct wiphy *wiphy,
struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy);
struct wl1271 *wl = hw->priv; struct wl1271 *wl = hw->priv;
/* copy the current dfs region */
if (request)
wl->dfs_region = request->dfs_region;
wlcore_regdomain_config(wl); wlcore_regdomain_config(wl);
} }
......
...@@ -465,6 +465,9 @@ struct wl1271 { ...@@ -465,6 +465,9 @@ struct wl1271 {
/* HW HT (11n) capabilities */ /* HW HT (11n) capabilities */
struct ieee80211_sta_ht_cap ht_cap[WLCORE_NUM_BANDS]; struct ieee80211_sta_ht_cap ht_cap[WLCORE_NUM_BANDS];
/* the current dfs region */
enum nl80211_dfs_regions dfs_region;
/* size of the private FW status data */ /* size of the private FW status data */
size_t fw_status_len; size_t fw_status_len;
size_t fw_status_priv_len; size_t fw_status_priv_len;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册