iPXE
Defines
802.11 Sequence Control field handling

Defines

#define IEEE80211_SEQNR(seq)   ( ( seq ) >> 4 )
 Extract sequence number from 802.11 Sequence Control field.
#define IEEE80211_FRAG(seq)   ( ( seq ) & 0x000F )
 Extract fragment number from 802.11 Sequence Control field.
#define IEEE80211_MAKESEQ(seqnr, frag)   ( ( ( ( seqnr ) & 0xFFF ) << 4 ) | ( ( frag ) & 0xF ) )
 Make 802.11 Sequence Control field from sequence and fragment numbers.

Define Documentation

#define IEEE80211_SEQNR (   seq)    ( ( seq ) >> 4 )

Extract sequence number from 802.11 Sequence Control field.

Definition at line 280 of file ieee80211.h.

Referenced by net80211_rx_frag().

#define IEEE80211_FRAG (   seq)    ( ( seq ) & 0x000F )

Extract fragment number from 802.11 Sequence Control field.

Definition at line 283 of file ieee80211.h.

Referenced by net80211_rx(), and net80211_rx_frag().

#define IEEE80211_MAKESEQ (   seqnr,
  frag 
)    ( ( ( ( seqnr ) & 0xFFF ) << 4 ) | ( ( frag ) & 0xF ) )

Make 802.11 Sequence Control field from sequence and fragment numbers.

Definition at line 286 of file ieee80211.h.

Referenced by net80211_ll_push(), and net80211_tx_mgmt().