* AP send null-data packet?
@ 2012-02-20 7:12 Yingang Fu
2012-02-20 9:48 ` Christian Lamparter
0 siblings, 1 reply; 5+ messages in thread
From: Yingang Fu @ 2012-02-20 7:12 UTC (permalink / raw)
To: linux-wireless
hi, all
It is wired that my AP send the station a null-date packet.
As i know that this packet could only been sent by the station.
Under which case the AP will send out this type of packet?
Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: AP send null-data packet?
2012-02-20 7:12 AP send null-data packet? Yingang Fu
@ 2012-02-20 9:48 ` Christian Lamparter
2012-02-20 11:03 ` Mohammed Shafi
0 siblings, 1 reply; 5+ messages in thread
From: Christian Lamparter @ 2012-02-20 9:48 UTC (permalink / raw)
To: Yingang Fu; +Cc: linux-wireless
On Monday, February 20, 2012 08:12:34 AM Yingang Fu wrote:
> It is wired that my AP send the station a null-date packet.
> As i know that this packet could only been sent by the station.
> Under which case the AP will send out this type of packet?
Don't know much about other AP software. But hostapd sends them
to check if a station is still in range and active.
quote from hostapd.conf:
# Station inactivity limit
#
# If a station does not send anything in ap_max_inactivity seconds, an
# empty data frame is sent to it in order to verify whether it is
# still in range. If this frame is not ACKed, the station will be
# disassociated and then deauthenticated. This feature is used to
# clear station table of old entries when the STAs move out of the
# range.
Regards,
Chr
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: AP send null-data packet?
2012-02-20 9:48 ` Christian Lamparter
@ 2012-02-20 11:03 ` Mohammed Shafi
2012-02-20 11:05 ` Johannes Berg
0 siblings, 1 reply; 5+ messages in thread
From: Mohammed Shafi @ 2012-02-20 11:03 UTC (permalink / raw)
To: Christian Lamparter; +Cc: Yingang Fu, linux-wireless
> Don't know much about other AP software. But hostapd sends them
> to check if a station is still in range and active.
>
> quote from hostapd.conf:
>
> # Station inactivity limit
> #
> # If a station does not send anything in ap_max_inactivity seconds, an
> # empty data frame is sent to it in order to verify whether it is
> # still in range. If this frame is not ACKed, the station will be
> # disassociated and then deauthenticated. This feature is used to
> # clear station table of old entries when the STAs move out of the
> # range.
i think also in this path in mac80211
sta_notify (driver call back) for AP mode
ieee80211_sta_block_awake
sta_unblock ->
ieee80211_sta_ps_deliver_poll_response ->
ieee80211_sta_ps_deliver_response ->
ieee80211_send_null_response
also in UAPSD path. i don't know much about the technical details
--
thanks,
shafi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: AP send null-data packet?
2012-02-20 11:03 ` Mohammed Shafi
@ 2012-02-20 11:05 ` Johannes Berg
2012-02-20 11:11 ` Mohammed Shafi
0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2012-02-20 11:05 UTC (permalink / raw)
To: Mohammed Shafi; +Cc: Christian Lamparter, Yingang Fu, linux-wireless
On Mon, 2012-02-20 at 16:33 +0530, Mohammed Shafi wrote:
> > Don't know much about other AP software. But hostapd sends them
> > to check if a station is still in range and active.
> >
> > quote from hostapd.conf:
> >
> > # Station inactivity limit
> > #
> > # If a station does not send anything in ap_max_inactivity seconds, an
> > # empty data frame is sent to it in order to verify whether it is
> > # still in range. If this frame is not ACKed, the station will be
> > # disassociated and then deauthenticated. This feature is used to
> > # clear station table of old entries when the STAs move out of the
> > # range.
>
> i think also in this path in mac80211
> sta_notify (driver call back) for AP mode
> ieee80211_sta_block_awake
> sta_unblock ->
> ieee80211_sta_ps_deliver_poll_response ->
> ieee80211_sta_ps_deliver_response ->
> ieee80211_send_null_response
>
> also in UAPSD path. i don't know much about the technical details
Yes, this is true, it happens when the station sends a PS-Poll but we
timed out the frame in the meantime -- should be uncommon. In the uAPSD
case it's more common, if nothing is pending and the station sends a
trigger frame.
In any case, it's perfectly normal for an AP to send null data frames.
johannes
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: AP send null-data packet?
2012-02-20 11:05 ` Johannes Berg
@ 2012-02-20 11:11 ` Mohammed Shafi
0 siblings, 0 replies; 5+ messages in thread
From: Mohammed Shafi @ 2012-02-20 11:11 UTC (permalink / raw)
To: Johannes Berg; +Cc: Christian Lamparter, Yingang Fu, linux-wireless
> Yes, this is true, it happens when the station sends a PS-Poll but we
> timed out the frame in the meantime -- should be uncommon. In the uAPSD
> case it's more common, if nothing is pending and the station sends a
> trigger frame.
thanks!
>
> In any case, it's perfectly normal for an AP to send null data frames.
--
thanks,
shafi
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-02-20 11:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-20 7:12 AP send null-data packet? Yingang Fu
2012-02-20 9:48 ` Christian Lamparter
2012-02-20 11:03 ` Mohammed Shafi
2012-02-20 11:05 ` Johannes Berg
2012-02-20 11:11 ` Mohammed Shafi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).