Fix WPS attribute parser to use correct pointer for Response Type
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 26 May 2010 14:12:30 +0000 (17:12 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 26 May 2010 14:12:30 +0000 (17:12 +0300)
src/wps/wps_attr_parse.c

index 7d52005..b185721 100644 (file)
@@ -332,7 +332,7 @@ static int wps_set_attr(struct wps_parse_attr *attr, u16 type,
                                   "length %u", len);
                        return -1;
                }
-               attr->request_type = pos;
+               attr->response_type = pos;
                break;
        case ATTR_MANUFACTURER:
                attr->manufacturer = pos;