iwmc3200wifi: handling wifi_if_ntfy responses
[pandora-kernel.git] / drivers / net / wireless / iwmc3200wifi / rx.c
index d73cf96..49a8be7 100644 (file)
@@ -993,12 +993,17 @@ static int iwm_ntf_wifi_if_wrapper(struct iwm_priv *iwm, u8 *buf,
                        (struct iwm_umac_wifi_if *)cmd->buf.payload;
 
        IWM_DBG_NTF(iwm, DBG, "WIFI_IF_WRAPPER cmd is delivered to UMAC: "
-                   "oid is %d\n", hdr->oid);
+                   "oid is 0x%x\n", hdr->oid);
+
+       if (hdr->oid <= WIFI_IF_NTFY_MAX) {
+               set_bit(hdr->oid, &iwm->wifi_ntfy[0]);
+               wake_up_interruptible(&iwm->wifi_ntfy_queue);
+       } else
+               return -EINVAL;
 
        switch (hdr->oid) {
        case UMAC_WIFI_IF_CMD_SET_PROFILE:
                iwm->umac_profile_active = 1;
-               wake_up_interruptible(&iwm->mlme_queue);
                break;
        default:
                break;