https://e2e.ti.com/support/wireless_connectivity/simplelink_wifi_cc3000/f/851/t/339046
You cannot mask HCI_EVENT_CC3000_CAN_SHUT_DOWN.
You are only allowed to mask the below events as mentioned in the API documentation.
//! HCI_EVNT_WLAN_UNSOL_CONNECT…