This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/TMS320DM8148: Create AP mode with authentication with rtl8188eu on ti8148

Part Number: TMS320DM8148

Tool/software: Linux

I am trying to create AP mode with WPA-PSK authentication, For this I am using LM007 WiFi Adapter (https://www.lm-technologies.com/product/wifi-usb-adapter-150mbps-lm007/),  DVRRDK_04.01.00.02 and kernel version 2.6.37. I have cross compiled driver given on the same link.

I am able to create AP mode without authentication and I can connect with my mobile. But when I create AP with authentication, my mobile can not connect. Event if I set correct password, my mobile show "Connecting.." then "Saved..".  Getting message "RTL871X: OnDeAuth(wlan0) reason=3, ta=a4:70:d6:7a:0d:e1".

Below is dmesg logs,

RTL871X: +871x_drv - drv_open, bup=0
RTL871X: Set RF Chip ID to RF_6052 and RF type to 3.
RTL871X: rtl8188e_FirmwareDownload fw:NIC, size: 15414
RTL871X: rtl8188e_FirmwareDownload: fw_ver=16 fw_subver=0000 sig=0x88e1, Month=11, Date=58, Hour=16, Minute=3c
RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00030005
RTL871X: =====> _8051Reset88E(): 8051 reset success .
RTL871X: _FWFreeToGo: Polling FW ready OK! (22, 10ms), REG_MCUFWDL:0x000300c6
RTL871X: FWDL success. write_fw:1, 40ms
==> rtl8188e_iol_efuse_patch 
RTL871X: pDM_Odm TxPowerTrackControl = 1
RTL871X: pDM_Odm TxPowerTrackControl = 1
RTL871X: rtl8188eu_hal_init in 1010ms
RTL871X: wlan0Port-0  set opmode = 2
RTL871X: MAC Address = 34:c9:f0:82:1c:63
RTL871X: rtw_cfg80211_init_wiphy:rf_type=3
RTL871X: [HT] HAL Support STBC = 0x01
RTL871X: -871x_drv - drv_open, bup=1
RTL871X: ==>rtw_ps_processor .fw_state(8)
RTL871X: ==>ips_enter cnts:1
RTL871X: nolinked power save enter
RTL871X: ===> rtw_ips_pwr_down...................
RTL871X: ====> rtw_ips_dev_unload...
RTL871X: usb_read_port_cancel
RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
RTL871X: usb_write_port_cancel 
RTL871X: ==> rtl8188eu_hal_deinit 
RTL871X: bkeepfwalive(0)
RTL871X: SetHwReg8188E: bMacPwrCtrlOn=0
RTL871X: <=== rtw_ips_pwr_down..................... in 60ms
RTL871X: -871x_drv - drv_close, bup=1
RTL871X: cfg80211_rtw_change_iface(wlan0) type=3
RTL871X: cfg80211_rtw_change_iface(wlan0) call netdev_open
RTL871X: +871x_drv - drv_open, bup=1
RTL871X: -871x_drv - drv_open, bup=1
RTL871X: _rtw_pwr_wakeup call ips_leave....
RTL871X: ==>ips_leave cnts:1
RTL871X: ===>  rtw_ips_pwr_up..............
RTL871X: ===> ips_netdrv_open.........
RTL871X: SetHwReg8188E: bMacPwrCtrlOn=1
RTL871X: Set RF Chip ID to RF_6052 and RF type to 3.
RTL871X: rtl8188e_FirmwareDownload fw:NIC, size: 15414
RTL871X: rtl8188e_FirmwareDownload: fw_ver=16 fw_subver=0000 sig=0x88e1, Month=11, Date=58, Hour=16, Minute=3c
RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00030005
RTL871X: =====> _8051Reset88E(): 8051 reset success .
RTL871X: _FWFreeToGo: Polling FW ready OK! (23, 40ms), REG_MCUFWDL:0x000300c6
RTL871X: FWDL success. write_fw:1, 60ms
==> rtl8188e_iol_efuse_patch 
RTL871X: pDM_Odm TxPowerTrackControl = 1
RTL871X: pDM_Odm TxPowerTrackControl = 1
RTL871X: rtl8188eu_hal_init in 810ms
RTL871X: wlan0Port-0  set opmode = 2
RTL871X: <===  rtw_ips_pwr_up.............. in 870ms
RTL871X: nolinked power save leave
RTL871X: ==> ips_leave.....LED(0x00028282)...
RTL871X: cfg80211_rtw_change_iface(wlan0) old_iftype=2, new_iftype=3
RTL871X: cfg80211_rtw_change_iface(wlan0) ret:0
RTL871X: wlan0Port-0  set opmode = 3
RTL871X: cfg80211_rtw_mgmt_frame_register(wlan0) frame_type:40, reg:1
RTL871X: +871x_drv - drv_open, bup=1
RTL871X: -871x_drv - drv_open, bup=1
RTL871X: cfg80211_rtw_set_channel(wlan0)
RTL871X: +cfg80211_rtw_del_station(wlan0)
RTL871X: flush all sta, and cam_entry
RTL871X: rtw_sta_flush(wlan0)
RTL871X: issue_deauth to ff:ff:ff:ff:ff:ff
RTL871X: +cfg80211_rtw_del_station(wlan0)
RTL871X: free sta macaddr =ff:ff:ff:ff:ff:ff
RTL871X: cfg80211_rtw_del_key(wlan0) key_index=0
RTL871X: cfg80211_rtw_del_key(wlan0) key_index=1
RTL871X: cfg80211_rtw_del_key(wlan0) key_index=2
RTL871X: cfg80211_rtw_del_key(wlan0) key_index=3
RTL871X: cfg80211_rtw_add_beacon(wlan0)
RTL871X: rtw_add_beacon beacon_head_len=58, beacon_tail_len=31
RTL871X: rtw_check_beacon_data, len=65
RTL871X: rtw_ap_chbw_decision(wlan0) ld_sta_num:0, lg_sta_num0, ap_num:0
RTL871X: rtw_ap_chbw_decision(wlan0) req: 6,0,0
RTL871X: rtw_ap_chbw_decision(wlan0) dec: 6,0,0
RTL871X: HW_VAR_BASIC_RATE: 0x15f -> 0x15f -> 0x15f
RTL871X: supp_mcs_set = 00, 00, 00, rf_type=191, tx_ra_bitmap=000000000000000f
RTL871X: update_bmc_sta=> mac_id:1 , raid:6 , bitmap=0x000000000000000f
RTL871X: rtl8188e_Add_RateATid=> mac_id:1 , raid:6 , ra_bitmap=0xf, shortGIrate=0x00
RTL871X: ### MacID(31),Set Max Tx RPT MID(32)
RTL871X: rtw_cfg80211_indicate_connect(wlan0)
RTL871X: assoc success
RTL871X: cfg80211_rtw_change_bss(wlan0)
RTL871X: cfg80211_rtw_add_key(wlan0) adding key for   (null)
RTL871X: cipher=0xfac04
RTL871X: key_len=0x10
RTL871X: seq_len=0x0
RTL871X: key_index=1
RTL871X: pairwise=0
RTL871X: rtw_cfg80211_ap_set_encryption
RTL871X: rtw_cfg80211_ap_set_encryption, set group_key, CCMP
RTL871X: rtw_ap_set_group_key
RTL871X: set group key camid:1, addr:00:00:00:00:00:00, kid:1, type:AES
RTL871X: SetHwReg8188E, 4836, RCR= 7000208e 
RTL871X: cfg80211_rtw_set_default_key(wlan0) key_index=1
RTL871X: +OnAuth
RTL871X: auth alg=0, seq=1
RTL871X: going to alloc stainfo for sa=a4:70:d6:7a:0d:e1
RTL871X: rtw_alloc_macid(wlan0) if1, hwaddr:a4:70:d6:7a:0d:e1 macid:0
RTL871X: issue_auth
RTL871X: OnAssocReq
RTL871X: allocate new AID = (1)
RTL871X: update_bcn_fixed_ie
RTL871X: associated_stainfo_update: a4:70:d6:7a:0d:e1, updated_type=0x3f
RTL871X: bss_cap_update_on_sta_join, updated=1
RTL871X: update_sta_info_apmode
RTL871X: ### Set STA_(0) info ###
RTL871X: issue_asocrsp
RTL871X: report_add_sta_event: add STA
RTL871X: ### MacID(31),Set Max Tx RPT MID(32)
RTL871X: supp_mcs_set = 00, 00, 00, rf_type=0, tx_ra_bitmap=0000000000000fff
RTL871X: add_RATid=> mac_id:0 , raid:4 , shortGIrate=0, tx_ra_bitmap:0x0000000000000fff, networkType:0x03
RTL871X: rtl8188e_Add_RateATid=> mac_id:0 , raid:4 , ra_bitmap=0xfff, shortGIrate=0x00
RTL871X: indicate_sta_assoc_event to upper layer - hostapd
RTL871X: rtw_cfg80211_indicate_sta_assoc(wlan0)
RTL871X: iftype=2 before call cfg80211_send_rx_assoc()
RTL871X: iftype=2 after call cfg80211_send_rx_assoc()
RTL871X: supp_mcs_set = 00, 00, 00, rf_type=191, tx_ra_bitmap=0000000000000fff
RTL871X: add_RATid=> mac_id:0 , raid:4 , shortGIrate=0, tx_ra_bitmap:0x0000000000000fff, networkType:0x03
RTL871X: ODM_Get_Rate_Bitmap ==> rssi_level:0x03, WirelessMode:0x03, rate_bitmap:0x00000ff5
RTL871X: rtl8188e_Add_RateATid=> mac_id:0 , raid:4 , ra_bitmap=0xff5, shortGIrate=0x00
RTL871X: SetHwReg8188E(wlan0): [HW_VAR_MACID_WAKEUP] macid=0, org reg_0x48c=0x00000000
RTL871X: asoc check, sta(a4:70:d6:7a:0d:e1) is alive
RTL871X: OnDeAuth(wlan0) - Start to Disconnect
RTL871X: OnDeAuth(wlan0) reason=3, ta=a4:70:d6:7a:0d:e1
RTL871X: report_del_sta_event(wlan0) a4:70:d6:7a:0d:e1 mac_id=0, enqueue:1, res:1
RTL871X: update_bcn_fixed_ie
RTL871X: bss_cap_update_on_sta_leave, updated=1
RTL871X: ### Clean STA_(0) info ###
RTL871X: rtw_stadel_event_callback(mac_id=0)=a4:70:d6:7a:0d:e1
RTL871X: ### MacID(31),Set Max Tx RPT MID(32)
RTL871X: rtw_cfg80211_indicate_sta_disassoc(wlan0)
RTL871X: +OnAuth
RTL871X: auth alg=0, seq=1
RTL871X: going to alloc stainfo for sa=a4:70:d6:7a:0d:e1
RTL871X: rtw_alloc_macid(wlan0) if1, hwaddr:a4:70:d6:7a:0d:e1 macid:0
RTL871X: issue_auth
RTL871X: OnAssocReq
RTL871X: allocate new AID = (1)
RTL871X: update_bcn_fixed_ie
RTL871X: associated_stainfo_update: a4:70:d6:7a:0d:e1, updated_type=0x3f
RTL871X: bss_cap_update_on_sta_join, updated=1
RTL871X: update_sta_info_apmode
RTL871X: ### Set STA_(0) info ###
RTL871X: issue_asocrsp
RTL871X: report_add_sta_event: add STA
RTL871X: ### MacID(31),Set Max Tx RPT MID(32)
RTL871X: supp_mcs_set = 00, 00, 00, rf_type=0, tx_ra_bitmap=0000000000000fff
RTL871X: add_RATid=> mac_id:0 , raid:4 , shortGIrate=0, tx_ra_bitmap:0x0000000000000fff, networkType:0x03
RTL871X: rtl8188e_Add_RateATid=> mac_id:0 , raid:4 , ra_bitmap=0xfff, shortGIrate=0x00
RTL871X: indicate_sta_assoc_event to upper layer - hostapd
RTL871X: rtw_cfg80211_indicate_sta_assoc(wlan0)
RTL871X: iftype=2 before call cfg80211_send_rx_assoc()
RTL871X: iftype=2 after call cfg80211_send_rx_assoc()
RTL871X: supp_mcs_set = 00, 00, 00, rf_type=191, tx_ra_bitmap=0000000000000fff
RTL871X: add_RATid=> mac_id:0 , raid:4 , shortGIrate=0, tx_ra_bitmap:0x0000000000000fff, networkType:0x03
RTL871X: ODM_Get_Rate_Bitmap ==> rssi_level:0x03, WirelessMode:0x03, rate_bitmap:0x00000ff5
RTL871X: rtl8188e_Add_RateATid=> mac_id:0 , raid:4 , ra_bitmap=0xff5, shortGIrate=0x00
RTL871X: SetHwReg8188E(wlan0): [HW_VAR_MACID_WAKEUP] macid=0, org reg_0x48c=0x00000000
RTL871X: asoc check, sta(a4:70:d6:7a:0d:e1) is alive
RTL871X: OnDeAuth(wlan0) - Start to Disconnect
RTL871X: OnDeAuth(wlan0) reason=3, ta=a4:70:d6:7a:0d:e1
RTL871X: report_del_sta_event(wlan0) a4:70:d6:7a:0d:e1 mac_id=0, enqueue:1, res:1
RTL871X: update_bcn_fixed_ie
RTL871X: bss_cap_update_on_sta_leave, updated=1
RTL871X: ### Clean STA_(0) info ###
RTL871X: rtw_stadel_event_callback(mac_id=0)=a4:70:d6:7a:0d:e1
RTL871X: ### MacID(31),Set Max Tx RPT MID(32)
RTL871X: rtw_cfg80211_indicate_sta_disassoc(wlan0)