int hostap_update_sta_ps(local_info_t *local, struct ieee80211_hdr *hdr)
int hostap_update_sta_ps(local_info_t *local, struct ieee80211_hdr_4addr *hdr)
int hostap_update_sta_ps(local_info_t *local, struct ieee80211_hdr *hdr){	struct sta_info *sta;	u16 fc;	spin_lock(&local->ap->sta_table_lock);	sta = ap_get_sta(local->ap, hdr->addr2);	if (sta)		atomic_inc(&sta->users);	spin_unlock(&local->ap->sta_table_lock);	if (!sta)		return -1;	fc = le16_to_cpu(hdr->frame_ctl);	hostap_update_sta_ps2(local, sta, fc & IEEE80211_FCTL_PM,			      WLAN_FC_GET_TYPE(fc), WLAN_FC_GET_STYPE(fc));	atomic_dec(&sta->users);	return 0;}