mac80211: make listen_interval be limited by low level driver
This patch makes possible for a driver to specify maximal listen interval The possibility for user to configure listen interval is not implemented yet, currently the maximum provided by the driver or 1 is used. Mac80211 uses config handler to set listen interval for to the driver. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
98f7dfd86c
commit
ea95bba41e
@ -774,7 +774,8 @@ static void ieee80211_send_assoc(struct net_device *dev,
|
||||
mgmt->frame_control = IEEE80211_FC(IEEE80211_FTYPE_MGMT,
|
||||
IEEE80211_STYPE_REASSOC_REQ);
|
||||
mgmt->u.reassoc_req.capab_info = cpu_to_le16(capab);
|
||||
mgmt->u.reassoc_req.listen_interval = cpu_to_le16(1);
|
||||
mgmt->u.reassoc_req.listen_interval =
|
||||
cpu_to_le16(local->hw.conf.listen_interval);
|
||||
memcpy(mgmt->u.reassoc_req.current_ap, ifsta->prev_bssid,
|
||||
ETH_ALEN);
|
||||
} else {
|
||||
@ -782,7 +783,8 @@ static void ieee80211_send_assoc(struct net_device *dev,
|
||||
mgmt->frame_control = IEEE80211_FC(IEEE80211_FTYPE_MGMT,
|
||||
IEEE80211_STYPE_ASSOC_REQ);
|
||||
mgmt->u.assoc_req.capab_info = cpu_to_le16(capab);
|
||||
mgmt->u.assoc_req.listen_interval = cpu_to_le16(1);
|
||||
mgmt->u.reassoc_req.listen_interval =
|
||||
cpu_to_le16(local->hw.conf.listen_interval);
|
||||
}
|
||||
|
||||
/* SSID */
|
||||
|
Reference in New Issue
Block a user