- // scan operation terminated prematurely because the max.
- // number of PAN descriptors/ED samples was reached
- result = IEEE154_LIMIT_REACHED;
-
- // mark the channel on which we received the last beacon
- // as unscanned, because it was not completely scanned
+ // Scan operation terminated because the max.
+ // number of PAN descriptors/ED samples was reached.
+ // Check if there are channels that were unscanned.
+ // In active/passive scan we consider a channel
+ // unscanned if it was not completely scanned.