ESP-12F intermittent problems

I managed to enable debug on Serial, where I have also some of my messages. Here it is quite clear, there is "something" wrong just in the WiFi protocol. I am on the way to try to understand the meaning of "bcn_timout,ap_probe_send_start" and, subsequently, "ap_probe_send over, rest wifi status to disassoc". May be my A.P. needs a different configuration for newly compiled modules? Unfortunately the only action I cannot perform is to load just compiled sketches to the old and working ESP's!

Follows the full debug output. I placed an * in front of my personal messages. 10.3.50.5 is the PC that is trying to ping ESP forever.

SDK:2.2.1(cfd48f3)/Core:2.4.1/lwIP:1.4.0rc2

**Starting!
bcn 0
del if1
usl
mode : sta(60:01:94:01:6c:5a)
add if0
wifi evt: 8
wifi evt: 2
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt

connected with MikroTik, channel 11
dhcp client start...
wifi evt: 0
ip:10.3.50.59,mask:255.255.255.0,gw:10.3.50.11
wifi evt: 3
**Connected to: MikroTik
**IP: 10.3.50.59
**Channel: 11
**MAC: 60:01:94:01:6c:5a
**UDP listening on port: 1986
**Newphone ready!
[hostByName] Host: 10.3.50.5 is a IP!
[hostByName] Host: 10.3.50.5 is a IP!
[hostByName] Host: 10.3.50.5 is a IP!
[hostByName] Host: 10.3.50.5 is a IP!
[hostByName] Host: 10.3.50.5 is a IP!
[hostByName] Host: 10.3.50.5 is a IP!
bcn_timout,ap_probe_send_start
[hostByName] Host: 10.3.50.5 is a IP!
[hostByName] Host: 10.3.50.5 is a IP!
[hostByName] Host: 10.3.50.5 is a IP!
ap_probe_send over, rest wifi status to disassoc
state: 5 -> 0 (1)
rm 0
wifi evt: 1
STA disconnect: 200
[hostByName] Host: 10.3.50.5 is a IP!
[hostByName] Host: 10.3.50.5 is a IP!
[hostByName] Host: 10.3.50.5 is a IP!
scandone
no MikroTik found, reconnect after 1s
wifi evt: 1
STA disconnect: 201
reconnect
[hostByName] Host: 10.3.50.5 is a IP!
[hostByName] Host: 10.3.50.5 is a IP!
[hostByName] Host: 10.3.50.5 is a IP!
scandone
no MikroTik found, reconnect after 1s
wifi evt: 1
STA disconnect: 201
reconnect
[hostByName] Host: 10.3.50.5 is a IP!
[hostByName] Host: 10.3.50.5 is a IP!
[hostByName] Host: 10.3.50.5 is a IP!
scandone
no MikroTik found, reconnect after 1s
wifi evt: 1
STA disconnect: 201
reconnect
[hostByName] Host: 10.3.50.5 is a IP!
[hostByName] Host: 10.3.50.5 is a IP!

As you can see, it connects fine, authenticates, gets IP from DHCP, etc. In addition, as far as my A.P. sa concerned, it never disconnects!