*      Global Data
  *
  ********************************************/
+enum cfg_cmd_type {
+       CFG_BYTE_CMD    = 0,
+       CFG_HWORD_CMD   = 1,
+       CFG_WORD_CMD    = 2,
+       CFG_STR_CMD     = 3,
+       CFG_BIN_CMD     = 4
+};
 
 struct wilc_mac_cfg {
        int mac_status;
        u8 type = (id >> 12) & 0xf;
        int ret = 0;
 
-       if (type == 0) {                                        /* byte command */
+       if (type == CFG_BYTE_CMD) {                                        /* byte command */
                if (size >= 1)
                        ret = wilc_wlan_cfg_set_byte(frame, offset, id, *buf);
-       } else if (type == 1) {                 /* half word command */
+       } else if (type == CFG_HWORD_CMD) {                 /* half word command */
                if (size >= 2)
                        ret = wilc_wlan_cfg_set_hword(frame, offset, id, *((u16 *)buf));
-       } else if (type == 2) {                 /* word command */
+       } else if (type == CFG_WORD_CMD) {                 /* word command */
                if (size >= 4)
                        ret = wilc_wlan_cfg_set_word(frame, offset, id, *((u32 *)buf));
-       } else if (type == 3) {                 /* string command */
+       } else if (type == CFG_STR_CMD) {                 /* string command */
                ret = wilc_wlan_cfg_set_str(frame, offset, id, buf, size);
-       } else if (type == 4) {                 /* binary command */
+       } else if (type == CFG_BIN_CMD) {                 /* binary command */
                ret = wilc_wlan_cfg_set_bin(frame, offset, id, buf, size);
        }
 
        }
 
        i = 0;
-       if (type == 0) {                                        /* byte command */
+       if (type == CFG_BYTE_CMD) {                                        /* byte command */
                do {
                        if (g_cfg_byte[i].id == WID_NIL)
                                break;
                        }
                        i++;
                } while (1);
-       } else if (type == 1) {                 /* half word command */
+       } else if (type == CFG_HWORD_CMD) {                 /* half word command */
                do {
                        if (g_cfg_hword[i].id == WID_NIL)
                                break;
                        }
                        i++;
                } while (1);
-       } else if (type == 2) {                 /* word command */
+       } else if (type == CFG_WORD_CMD) {                 /* word command */
                do {
                        if (g_cfg_word[i].id == WID_NIL)
                                break;
                        }
                        i++;
                } while (1);
-       } else if (type == 3) {                 /* string command */
+       } else if (type == CFG_STR_CMD) {                 /* string command */
                do {
                        if (g_cfg_str[i].id == WID_NIL)
                                break;