{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/esp_iot_rtos_sdk/issues/26","labels_url":"https://api.github.com/repos/espressif/esp_iot_rtos_sdk/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/espressif/esp_iot_rtos_sdk/issues/26/comments","events_url":"https://api.github.com/repos/espressif/esp_iot_rtos_sdk/issues/26/events","html_url":"https://github.com/espressif/esp_iot_rtos_sdk/issues/26","id":78937133,"number":26,"title":"esp8266 crashes when connected to wifi in station mode with wep security key","user":{"login":"eswarams2000","id":12543402,"avatar_url":"https://avatars.githubusercontent.com/u/12543402?v=3","gravatar_id":"","url":"https://api.github.com/users/eswarams2000","html_url":"https://github.com/eswarams2000","followers_url":"https://api.github.com/users/eswarams2000/followers","following_url":"https://api.github.com/users/eswarams2000/following{/other_user}","gists_url":"https://api.github.com/users/eswarams2000/gists{/gist_id}","starred_url":"https://api.github.com/users/eswarams2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eswarams2000/subscriptions","organizations_url":"https://api.github.com/users/eswarams2000/orgs","repos_url":"https://api.github.com/users/eswarams2000/repos","events_url":"https://api.github.com/users/eswarams2000/events{/privacy}","received_events_url":"https://api.github.com/users/eswarams2000/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-21T10:38:53Z","updated_at":"2015-06-13T05:51:20Z","closed_at":"2015-06-13T05:51:20Z","body":"Hi ,\r\n  I find esp8266 to work fine when i connect to my wifi router using wpa/wpa2. \r\n  But when i connect esp8266 in station mode to wifi router using wep it crashes at \"ieee80211_crypto_decap\".  I use the latest libnet80211.a in the repo. \r\n\r\nDo we have a work around for this or I am missing any thing?\r\n\r\n\r\n    /* need to set opmode before you set config */\r\n    wifi_set_opmode(STATION_MODE);\r\n\r\n    {\r\n        struct station_config *config = (struct station_config *)zalloc(sizeof(struct station_config));\r\n        sprintf(config->ssid, \"myssid\");\r\n        sprintf(config->password, \"my_wep_pass\");\r\n\r\n        /* need to sure that you are in station mode first,\r\n         * otherwise it will be failed. */\r\n        wifi_station_set_config(config);\r\n        free(config);\r\n    }\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/espressif/esp_iot_rtos_sdk/issues/comments/111675902","html_url":"https://github.com/espressif/esp_iot_rtos_sdk/issues/26#issuecomment-111675902","issue_url":"https://api.github.com/repos/espressif/esp_iot_rtos_sdk/issues/26","id":111675902,"user":{"login":"eswarams2000","id":12543402,"avatar_url":"https://avatars.githubusercontent.com/u/12543402?v=3","gravatar_id":"","url":"https://api.github.com/users/eswarams2000","html_url":"https://github.com/eswarams2000","followers_url":"https://api.github.com/users/eswarams2000/followers","following_url":"https://api.github.com/users/eswarams2000/following{/other_user}","gists_url":"https://api.github.com/users/eswarams2000/gists{/gist_id}","starred_url":"https://api.github.com/users/eswarams2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eswarams2000/subscriptions","organizations_url":"https://api.github.com/users/eswarams2000/orgs","repos_url":"https://api.github.com/users/eswarams2000/repos","events_url":"https://api.github.com/users/eswarams2000/events{/privacy}","received_events_url":"https://api.github.com/users/eswarams2000/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T05:51:20Z","updated_at":"2015-06-13T05:51:20Z","body":"Works with new 1.1.1 libs"}}