# Enabling monitor mode

For DroneBridge to work the WiFi adapter must be in monitor mode. You can set the cards to monitor mode using the following bash script (root privileges required):

```bash
interface='yourinterfacename'
ip link set $interface down
iw dev $interface set type managed
ip link set $interface up
iw dev $interface set bitrates legacy-2.4 54
ip link set $interface down
iw dev $interface set type monitor
ip link set $interface up
iw dev $interface set freq 2472

echo $interface
iwconfig
```

In DroneBridge the script `/startup/init_wifi.py` is used to setup the cards. You may want to use it.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dronebridge.gitbook.io/docs/dronebridge-desktop/enabling-monitor-mode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
