mac1.SetType ("ns3::StaWifiMac",
"Ssid", SsidValue (ssid),
"ActiveProbing", BooleanValue (false),
"Slot", TimeValue (MicroSeconds (20)));
mac2.SetType ("ns3::StaWifiMac",
"Ssid", SsidValue (ssid),
"ActiveProbing", BooleanValue (false),
"Slot", TimeValue (MicroSeconds (0)));
and you install mac1 on one interface and mac2 on another interface.
I never tried such things but I guess it can work.
But be aware that accessing the slot value attribute is allowed but not possible, since it is overwritten!
I had opened a bug for this (check https://www.nsnam.org/bugzilla/show_bug.cgi?id=1801) and I have a solution (maybe not the best one) to avoid to overwrite values by the default ones during configuration.
But I was told that it was not advised to change those values (for normal simulations) so I did not submit my patch.