Skip to content

wifi: API adjustments to work with pybindgen

Recent wifi module commits have broken the automated pybindgen API scanning. This merge request makes two small API changes to work around the limitations; they do not affect user code.

  1. the enum type WifiCodeRate cannot be included in an ns-3 Callback in wifi-mode.h:
  typedef Callback<WifiCodeRate> CodeRateCallback;
  1. pybindgen could not handle this helper method (and similar) such as in erp-ofdm-phy.cc:
static std::map<uint16_t, std::vector<uint64_t> > GetOfdmRatesBpsList (void);

I should be able to rescan the APIs if this patch is accepted.

Merge request reports

Loading