[LR11x0] Prevent WiFi scanning attempts on LR1121 (#1290)

This commit is contained in:
jgromes 2024-10-26 17:07:37 +01:00
parent b12f7052bf
commit 709fbdb13a
2 changed files with 5 additions and 3 deletions

View file

@ -21,9 +21,6 @@ class LR1121: public LR1120 {
*/
LR1121(Module* mod); // cppcheck-suppress noExplicitConstructor
// TODO this is where overrides to disable GNSS+WiFi scanning methods on LR1121
// will be put once those are implemented
#if !RADIOLIB_GODMODE
private:
#endif

View file

@ -1512,6 +1512,11 @@ int16_t LR11x0::setLrFhssConfig(uint8_t bw, uint8_t cr, uint8_t hdrCount, uint16
}
int16_t LR11x0::startWifiScan(char wifiType, uint8_t mode, uint16_t chanMask, uint8_t numScans, uint16_t timeout) {
// LR1121 cannot do WiFi scanning
if(this->chipType == RADIOLIB_LR11X0_DEVICE_LR1121) {
return(RADIOLIB_ERR_UNSUPPORTED);
}
uint8_t type;
switch(wifiType) {
case('b'):