Author: eadler
Date: Thu Mar  1 06:38:06 2018
New Revision: 330205
URL: https://svnweb.freebsd.org/changeset/base/330205

Log:
  MFC r318215:
  
  [iwm] change the check for ADD_STA status, use IWM_ADD_STA_STATUS_MASK.

Modified:
  stable/11/sys/dev/iwm/if_iwm.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/iwm/if_iwm.c
==============================================================================
--- stable/11/sys/dev/iwm/if_iwm.c      Thu Mar  1 06:36:41 2018        
(r330204)
+++ stable/11/sys/dev/iwm/if_iwm.c      Thu Mar  1 06:38:06 2018        
(r330205)
@@ -3909,7 +3909,7 @@ iwm_mvm_sta_send_to_fw(struct iwm_softc *sc, struct iw
        if (ret)
                return ret;
 
-       switch (status) {
+       switch (status & IWM_ADD_STA_STATUS_MASK) {
        case IWM_ADD_STA_SUCCESS:
                break;
        default:
@@ -3955,7 +3955,7 @@ iwm_mvm_add_int_sta_common(struct iwm_softc *sc, struc
        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__);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to