Commit 41a25c61 authored by Zhu Yi's avatar Zhu Yi Committed by John W. Linville

[PATCH] ieee80211: TIM information element parsing

Added partial support of TIM information element parsing
Signed-off-by: default avatarJames Ketrenos <jketreno@linux.intel.com>
Signed-off-by: default avatarZhu Yi <yi.zhu@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 8aa914b7
...@@ -1047,7 +1047,9 @@ static int ieee80211_parse_info_param(struct ieee80211_info_element ...@@ -1047,7 +1047,9 @@ static int ieee80211_parse_info_param(struct ieee80211_info_element
break; break;
case MFIE_TYPE_TIM: case MFIE_TYPE_TIM:
IEEE80211_DEBUG_MGMT("MFIE_TYPE_TIM: ignored\n"); network->tim.tim_count = info_element->data[0];
network->tim.tim_period = info_element->data[1];
IEEE80211_DEBUG_MGMT("MFIE_TYPE_TIM: partially ignored\n");
break; break;
case MFIE_TYPE_ERP_INFO: case MFIE_TYPE_ERP_INFO:
...@@ -1276,6 +1278,7 @@ static void update_network(struct ieee80211_network *dst, ...@@ -1276,6 +1278,7 @@ static void update_network(struct ieee80211_network *dst,
dst->listen_interval = src->listen_interval; dst->listen_interval = src->listen_interval;
dst->atim_window = src->atim_window; dst->atim_window = src->atim_window;
dst->erp_value = src->erp_value; dst->erp_value = src->erp_value;
dst->tim = src->tim;
memcpy(dst->wpa_ie, src->wpa_ie, src->wpa_ie_len); memcpy(dst->wpa_ie, src->wpa_ie, src->wpa_ie_len);
dst->wpa_ie_len = src->wpa_ie_len; dst->wpa_ie_len = src->wpa_ie_len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment