[iwm] change the check for ADD_STA status, use IWM_ADD_STA_STATUS_MASK.

Obtained from:	dragonflybsd.git 74d41163ddac72b0d7ea7b7873d53fe134723a12
This commit is contained in:
Adrian Chadd 2017-05-12 05:22:29 +00:00
parent 5d2fcafc23
commit b72d4b835b

View File

@ -3925,7 +3925,7 @@ iwm_mvm_sta_send_to_fw(struct iwm_softc *sc, struct iwm_node *in, int update)
if (ret)
return ret;
switch (status) {
switch (status & IWM_ADD_STA_STATUS_MASK) {
case IWM_ADD_STA_SUCCESS:
break;
default:
@ -3971,7 +3971,7 @@ iwm_mvm_add_int_sta_common(struct iwm_softc *sc, struct iwm_int_sta *sta,
if (ret)
return ret;
switch (status) {
switch (status & IWM_ADD_STA_STATUS_MASK) {
case IWM_ADD_STA_SUCCESS:
IWM_DPRINTF(sc, IWM_DEBUG_RESET,
"%s: Internal station added.\n", __func__);