I solved, if it might help someone, there the possibility to configure the
MAC layer of a specific station that we want to change the default configuration.
Ptr<NetDevice> dev = wifiStaNodes.Get (0)->GetDevice (0);
Ptr<WifiNetDevice> wifi_dev = DynamicCast<WifiNetDevice> (dev);
Ptr<WifiMac> wifiMac = wifi_dev->GetMac();
Ptr<StaWifiMac> staWifi = DynamicCast<StaWifiMac> (wifiMac);
// staWifi->method()