|
@@ -553,81 +553,83 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
553
|
553
|
|
554
|
554
|
/** Make return status code from 802.11 status code */
|
555
|
555
|
#define E80211_STATUS( stat ) \
|
556
|
|
- EUNIQ ( ( ( stat & 0x20 ) ? EHOSTUNREACH : ECONNREFUSED ), \
|
557
|
|
- ( stat &0x1f ), \
|
558
|
|
- ECONNREFUSED_FAILURE, \
|
559
|
|
- ECONNREFUSED_CAPAB_UNSUPP, \
|
560
|
|
- ECONNREFUSED_REASSOC_INVALID, \
|
561
|
|
- ECONNREFUSED_ASSOC_DENIED, \
|
562
|
|
- ECONNREFUSED_AUTH_ALGO_UNSUPP, \
|
563
|
|
- ECONNREFUSED_AUTH_SEQ_INVALID, \
|
564
|
|
- ECONNREFUSED_AUTH_CHALL_INVALID, \
|
565
|
|
- ECONNREFUSED_AUTH_TIMEOUT, \
|
566
|
|
- ECONNREFUSED_ASSOC_NO_ROOM, \
|
567
|
|
- ECONNREFUSED_ASSOC_NEED_RATE, \
|
568
|
|
- ECONNREFUSED_ASSOC_NEED_SHORT_PMBL, \
|
569
|
|
- ECONNREFUSED_ASSOC_NEED_PBCC, \
|
570
|
|
- ECONNREFUSED_ASSOC_NEED_CHAN_AGILITY, \
|
571
|
|
- ECONNREFUSED_ASSOC_NEED_SPECTRUM_MGMT, \
|
572
|
|
- ECONNREFUSED_ASSOC_BAD_POWER, \
|
573
|
|
- ECONNREFUSED_ASSOC_BAD_CHANNELS, \
|
574
|
|
- ECONNREFUSED_ASSOC_NEED_SHORT_SLOT, \
|
575
|
|
- ECONNREFUSED_ASSOC_NEED_DSSS_OFDM, \
|
576
|
|
- EHOSTUNREACH_QOS_FAILURE, \
|
577
|
|
- EHOSTUNREACH_QOS_NO_ROOM, \
|
578
|
|
- EHOSTUNREACH_LINK_IS_HORRIBLE, \
|
579
|
|
- EHOSTUNREACH_ASSOC_NEED_QOS, \
|
580
|
|
- EHOSTUNREACH_REQUEST_DECLINED, \
|
581
|
|
- EHOSTUNREACH_REQUEST_INVALID, \
|
582
|
|
- EHOSTUNREACH_TS_NOT_CREATED_AGAIN, \
|
583
|
|
- EHOSTUNREACH_INVALID_IE, \
|
584
|
|
- EHOSTUNREACH_GROUP_CIPHER_INVALID, \
|
585
|
|
- EHOSTUNREACH_PAIR_CIPHER_INVALID, \
|
586
|
|
- EHOSTUNREACH_AKMP_INVALID, \
|
587
|
|
- EHOSTUNREACH_RSN_VERSION_UNSUPP, \
|
588
|
|
- EHOSTUNREACH_RSN_CAPAB_INVALID, \
|
589
|
|
- EHOSTUNREACH_CIPHER_REJECTED, \
|
590
|
|
- EHOSTUNREACH_TS_NOT_CREATED_WAIT, \
|
591
|
|
- EHOSTUNREACH_DIRECT_LINK_FORBIDDEN, \
|
592
|
|
- EHOSTUNREACH_DEST_NOT_PRESENT, \
|
593
|
|
- EHOSTUNREACH_DEST_NOT_QOS, \
|
594
|
|
- EHOSTUNREACH_ASSOC_LISTEN_TOO_HIGH )
|
|
556
|
+ ( ( (stat) & 0x20 ) ? \
|
|
557
|
+ EUNIQ ( EINFO_EHOSTUNREACH, ( (stat) & 0x1f ), \
|
|
558
|
+ EHOSTUNREACH_QOS_FAILURE, \
|
|
559
|
+ EHOSTUNREACH_QOS_NO_ROOM, \
|
|
560
|
+ EHOSTUNREACH_LINK_IS_HORRIBLE, \
|
|
561
|
+ EHOSTUNREACH_ASSOC_NEED_QOS, \
|
|
562
|
+ EHOSTUNREACH_REQUEST_DECLINED, \
|
|
563
|
+ EHOSTUNREACH_REQUEST_INVALID, \
|
|
564
|
+ EHOSTUNREACH_TS_NOT_CREATED_AGAIN, \
|
|
565
|
+ EHOSTUNREACH_INVALID_IE, \
|
|
566
|
+ EHOSTUNREACH_GROUP_CIPHER_INVALID, \
|
|
567
|
+ EHOSTUNREACH_PAIR_CIPHER_INVALID, \
|
|
568
|
+ EHOSTUNREACH_AKMP_INVALID, \
|
|
569
|
+ EHOSTUNREACH_RSN_VERSION_UNSUPP, \
|
|
570
|
+ EHOSTUNREACH_RSN_CAPAB_INVALID, \
|
|
571
|
+ EHOSTUNREACH_CIPHER_REJECTED, \
|
|
572
|
+ EHOSTUNREACH_TS_NOT_CREATED_WAIT, \
|
|
573
|
+ EHOSTUNREACH_DIRECT_LINK_FORBIDDEN, \
|
|
574
|
+ EHOSTUNREACH_DEST_NOT_PRESENT, \
|
|
575
|
+ EHOSTUNREACH_DEST_NOT_QOS, \
|
|
576
|
+ EHOSTUNREACH_ASSOC_LISTEN_TOO_HIGH ) : \
|
|
577
|
+ EUNIQ ( EINFO_ECONNREFUSED, ( (stat) & 0x1f ), \
|
|
578
|
+ ECONNREFUSED_FAILURE, \
|
|
579
|
+ ECONNREFUSED_CAPAB_UNSUPP, \
|
|
580
|
+ ECONNREFUSED_REASSOC_INVALID, \
|
|
581
|
+ ECONNREFUSED_ASSOC_DENIED, \
|
|
582
|
+ ECONNREFUSED_AUTH_ALGO_UNSUPP, \
|
|
583
|
+ ECONNREFUSED_AUTH_SEQ_INVALID, \
|
|
584
|
+ ECONNREFUSED_AUTH_CHALL_INVALID, \
|
|
585
|
+ ECONNREFUSED_AUTH_TIMEOUT, \
|
|
586
|
+ ECONNREFUSED_ASSOC_NO_ROOM, \
|
|
587
|
+ ECONNREFUSED_ASSOC_NEED_RATE, \
|
|
588
|
+ ECONNREFUSED_ASSOC_NEED_SHORT_PMBL, \
|
|
589
|
+ ECONNREFUSED_ASSOC_NEED_PBCC, \
|
|
590
|
+ ECONNREFUSED_ASSOC_NEED_CHAN_AGILITY, \
|
|
591
|
+ ECONNREFUSED_ASSOC_NEED_SPECTRUM_MGMT, \
|
|
592
|
+ ECONNREFUSED_ASSOC_BAD_POWER, \
|
|
593
|
+ ECONNREFUSED_ASSOC_BAD_CHANNELS, \
|
|
594
|
+ ECONNREFUSED_ASSOC_NEED_SHORT_SLOT, \
|
|
595
|
+ ECONNREFUSED_ASSOC_NEED_DSSS_OFDM ) )
|
595
|
596
|
|
596
|
597
|
/** Make return status code from 802.11 reason code */
|
597
|
598
|
#define E80211_REASON( reas ) \
|
598
|
|
- EUNIQ ( ( ( reas & 0x20 ) ? ENETRESET : ECONNRESET ), \
|
599
|
|
- ( reas & 0x1f ), \
|
600
|
|
- ECONNRESET_UNSPECIFIED, \
|
601
|
|
- ECONNRESET_AUTH_NO_LONGER_VALID, \
|
602
|
|
- ECONNRESET_LEAVING, \
|
603
|
|
- ECONNRESET_INACTIVITY, \
|
604
|
|
- ECONNRESET_OUT_OF_RESOURCES, \
|
605
|
|
- ECONNRESET_NEED_AUTH, \
|
606
|
|
- ECONNRESET_NEED_ASSOC, \
|
607
|
|
- ECONNRESET_LEAVING_TO_ROAM, \
|
608
|
|
- ECONNRESET_REASSOC_INVALID, \
|
609
|
|
- ECONNRESET_BAD_POWER, \
|
610
|
|
- ECONNRESET_BAD_CHANNELS, \
|
611
|
|
- ECONNRESET_INVALID_IE, \
|
612
|
|
- ECONNRESET_MIC_FAILURE, \
|
613
|
|
- ECONNRESET_4WAY_TIMEOUT, \
|
614
|
|
- ECONNRESET_GROUPKEY_TIMEOUT, \
|
615
|
|
- ECONNRESET_4WAY_INVALID, \
|
616
|
|
- ECONNRESET_GROUP_CIPHER_INVALID, \
|
617
|
|
- ECONNRESET_PAIR_CIPHER_INVALID, \
|
618
|
|
- ECONNRESET_AKMP_INVALID, \
|
619
|
|
- ECONNRESET_RSN_VERSION_INVALID, \
|
620
|
|
- ECONNRESET_RSN_CAPAB_INVALID, \
|
621
|
|
- ECONNRESET_8021X_FAILURE, \
|
622
|
|
- ECONNRESET_CIPHER_REJECTED, \
|
623
|
|
- ENETRESET_QOS_UNSPECIFIED, \
|
624
|
|
- ENETRESET_QOS_OUT_OF_RESOURCES, \
|
625
|
|
- ENETRESET_LINK_IS_HORRIBLE, \
|
626
|
|
- ENETRESET_INVALID_TXOP, \
|
627
|
|
- ENETRESET_REQUESTED_LEAVING, \
|
628
|
|
- ENETRESET_REQUESTED_NO_USE, \
|
629
|
|
- ENETRESET_REQUESTED_NEED_SETUP, \
|
630
|
|
- ENETRESET_REQUESTED_TIMEOUT, \
|
631
|
|
- ENETRESET_CIPHER_UNSUPPORTED )
|
|
599
|
+ ( ( (reas) & 0x20 ) ? \
|
|
600
|
+ EUNIQ ( EINFO_ENETRESET, ( (reas) & 0x1f ), \
|
|
601
|
+ ENETRESET_QOS_UNSPECIFIED, \
|
|
602
|
+ ENETRESET_QOS_OUT_OF_RESOURCES, \
|
|
603
|
+ ENETRESET_LINK_IS_HORRIBLE, \
|
|
604
|
+ ENETRESET_INVALID_TXOP, \
|
|
605
|
+ ENETRESET_REQUESTED_LEAVING, \
|
|
606
|
+ ENETRESET_REQUESTED_NO_USE, \
|
|
607
|
+ ENETRESET_REQUESTED_NEED_SETUP, \
|
|
608
|
+ ENETRESET_REQUESTED_TIMEOUT, \
|
|
609
|
+ ENETRESET_CIPHER_UNSUPPORTED ) : \
|
|
610
|
+ EUNIQ ( EINFO_ECONNRESET, ( (reas) & 0x1f ), \
|
|
611
|
+ ECONNRESET_UNSPECIFIED, \
|
|
612
|
+ ECONNRESET_AUTH_NO_LONGER_VALID, \
|
|
613
|
+ ECONNRESET_LEAVING, \
|
|
614
|
+ ECONNRESET_INACTIVITY, \
|
|
615
|
+ ECONNRESET_OUT_OF_RESOURCES, \
|
|
616
|
+ ECONNRESET_NEED_AUTH, \
|
|
617
|
+ ECONNRESET_NEED_ASSOC, \
|
|
618
|
+ ECONNRESET_LEAVING_TO_ROAM, \
|
|
619
|
+ ECONNRESET_REASSOC_INVALID, \
|
|
620
|
+ ECONNRESET_BAD_POWER, \
|
|
621
|
+ ECONNRESET_BAD_CHANNELS, \
|
|
622
|
+ ECONNRESET_INVALID_IE, \
|
|
623
|
+ ECONNRESET_MIC_FAILURE, \
|
|
624
|
+ ECONNRESET_4WAY_TIMEOUT, \
|
|
625
|
+ ECONNRESET_GROUPKEY_TIMEOUT, \
|
|
626
|
+ ECONNRESET_4WAY_INVALID, \
|
|
627
|
+ ECONNRESET_GROUP_CIPHER_INVALID, \
|
|
628
|
+ ECONNRESET_PAIR_CIPHER_INVALID, \
|
|
629
|
+ ECONNRESET_AKMP_INVALID, \
|
|
630
|
+ ECONNRESET_RSN_VERSION_INVALID, \
|
|
631
|
+ ECONNRESET_RSN_CAPAB_INVALID, \
|
|
632
|
+ ECONNRESET_8021X_FAILURE, \
|
|
633
|
+ ECONNRESET_CIPHER_REJECTED ) )
|
632
|
634
|
|
633
|
635
|
#endif /* _IPXE_NET80211_ERR_H */
|