اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release بدلاً من aosp-main لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يقدّم نظام التشغيل Android 12 ميزة "التشغيل المتزامن لنقاط الوصول" في Wi-Fi، ما
يتيح للأجهزة إنشاء واجهتَي نقطة وصول. تتيح هذه الميزة
للأجهزة ربط الأجهزة الأخرى عبر نقطة اتصال Wi-Fi (نقطة اتصال لاسلكية) مزدوجة النطاق (DBS). لمعرفة التفاصيل حول إتاحة ميزة "الربط" من خلال نقطة اتصال Wi-Fi واحدة، يُرجى الاطّلاع على إتاحة نقطة اتصال Wi-Fi (نقطة اتصال البرامج).
توضِّح هذه الصفحة سلوك الجهاز عند تفعيل هذه الميزة، واطلاعك على
تفاصيل التنفيذ لصنّاع الأجهزة وبائعيها.
آلية العمل
عندما يكون استخدام نقطة الوصول/نقطة الوصول المتزامن في Wi-Fi متوافقًا، يمكن للجهاز إنشاء واجهتَين لنقطة الوصول، على سبيل المثال، واجهة تعمل على نطاق 2.4 غيغاهرتز وواجهة
على نطاق 5 غيغاهرتز. ويمكن للعملاء بعد ذلك الاتصال بكل واجهة من واجهات نقطة الوصول.
ينشئ Wi-Fi HAL واجهة واحدة متصلة بواجهتَي AP ويعرضها على حِزمة Wi-Fi وإمكانية الاتصال عندما تفعِّل الحِزمة AP الافتراضي. بعد تفعيل نقطة الوصول الافتراضي، يشير HAL لشبكة Wi-Fi إلى أنّه
تتوفّر واجهتان ويُعدّل المعلومات
(مثل قناة التشغيل وسعة النطاق وعنوان BSSID) لكل نقطة وصول.
لتوفير الطاقة، يوقف إطار العمل نقطة اتصال غير مستخدَمة (2.4 غيغاهرتز أو 5 غيغاهرتز أو
6 غيغاهرتز) بعد فترة من عدم النشاط. يعتبر إطار العمل نقطة الوصول
غير نشطة عندما لا يكون هناك عميل متصل. يمكن لصنّاع الأجهزة تخصيص مدّة هذه الفترة غير النشطة. لمزيد من المعلومات، يُرجى الاطّلاع على مقالة
تخصيص فترة عدم النشاط.
تتيح الأجهزة استخدام نقطة وصول Wi-Fi/نقطة وصول في وقت واحد باستخدام أحد إعدادات نقطة الوصول الافتراضية التالية المزوّدة بشبكة bridged:
ضبط نطاقين (يتم اختيار القناة تلقائيًا من قِبل الإطار أو برنامج التشغيل)
ضبط قناتَين على نقطة اتصال مزدوجة النطاق
المتطلبات
لتنفيذ ميزة "التشغيل المتزامن لنقطة الوصول/نقطة الوصول" في شبكة Wi-Fi، يجب أن تستوفي الأجهزة المتطلّبات التالية:
يجب أن تتيح شريحة Wi-Fi أو البرامج الثابتة اتصالَين متزامنين بنقطة AP. يجب أن تتيح البرامج الثابتة جميع مجموعات القنوات والنطاقات
لكلتا الطريقتَين. لتجنُّب مشاكل الأداء، ننصحك باستخدام chip Wi-Fi 2x2+2x2 DBS.
يجب أن يتيح الجهاز الطرق التالية في HAL الخاص بمورّد Wi-Fi:
IWifiChip.createBridgedApIface()
IWifiChip.removeIfaceInstanceFromBridgedApIface()
IWifiApIface.resetToFactoryMacAddress()
IWifiApIface.getBridgedInstances()
التنفيذ
لتنفيذ ميزة "التشغيل المتزامن لنقاط الوصول" في شبكة Wi-Fi، اتّبِع الخطوات التالية:
بالنسبة إلى الأجهزة التي تستخدم حزمة AIDL Wi-Fi HAL أو حزمة HIDL Wi-Fi HAL 1.6،
حدِّد AP_BRIDGED في مجموعة واجهات Wi-Fi HAL. لمزيد من
التفاصيل، يُرجى الاطّلاع على
المعالجة المتزامنة لواجهات Wi-Fi المتعددة.
يمكنك ضبط إعدادات نقطة اتصال البرامج المتداخلة من خلال الاتصال بإحدى ال methods التالية:
سجِّل طلب اتصال للاطّلاع على إمكانات الجهاز باستخدام WifiManager#registerSoftApCallback. يوفّر SoftApCallback callback
الطرق التالية لضبط نقطة اتصال افتراضية متصلة بشبكة أخرى:
config_wifiFrameworkSoftApShutDownIdleInstanceInBridgedModeTimeoutMillisecond:
الفاصل الزمني التلقائي لمهلة الإيقاف. لا تكون صالحة إلا إذا كان الخيار
SoftApConfiguration#setBridgedModeOpportunisticShutdownEnabled مفعّلاً.
(متاح من الإصدار 13)
config_wifiFrameworkSoftApDisableBridgedModeShutdownIdleInstanceWhenCharging:
يشير إلى ما إذا كان سيتم إيقاف موقّت إيقاف الجهاز في حال عدم النشاط أثناء الشحن.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Wi-Fi AP/AP concurrency\n\nAndroid 12 introduces Wi-Fi AP/AP concurrency, which\nlets devices create two access point (AP) interfaces. This feature lets\ndevices support tethering through a dual band simultaneous (DBS) Wi-Fi\nhotspot (soft AP). For details on supporting tethering through a single Wi-Fi\nhotspot, see\n[Wi-Fi Hotspot (Soft AP) Support](/docs/core/connect/wifi-softap).\n\nThis page describes the device behavior when this feature is enabled and\nimplementation details for device manufacturers and vendors.\n\nHow it works\n------------\n\n| **Note:** Android 12 supports the 2.4 GHz and 5 GHz bands for Wi-Fi AP/AP concurrency. Android 13 adds support for the 6 GHz band.\n\nWhen Wi-Fi AP/AP concurrency is supported, the device can create two AP\ninterfaces, for example, one interface working on the 2.4 GHz band and one\non the 5 GHz band. Clients can then connect to each of the AP interfaces.\n\nThe Wi-Fi HAL generates a single bridged interface with the two AP\ninterfaces and exposes it to the Wi-Fi and connectivity stack when the stack\nenables a soft AP. After the soft AP is enabled, the Wi-Fi HAL indicates that\ntwo interfaces are available and updates the information\n(such as operation channel, bandwidth, and BSSID) for each AP.\n\nTo save power, the framework disables an unused AP (2.4 GHz, 5 GHz, or\n6 GHz) after a period of inactivity. The framework considers an AP to be\ninactive when no client is connected. Device manufacturers can customize the\nlength of this inactive period. For more information, see\n[Customize the inactivity period](#customize).\n\nDevices support Wi-Fi AP/AP concurrency by using one of the following\nbridged soft AP configurations:\n\n- Configuring two bands (the channel is automatically selected by the framework or the driver)\n- Configuring two channels on a dual-band AP\n\nRequirements\n------------\n\nTo implement Wi-Fi AP/AP concurrency, devices must meet the following\nrequirements:\n\n- The Wi-Fi chip or firmware must support two concurrent AP\n connections. The firmware must support all channel and band combinations\n for both connections. To avoid performance issues, we recommend using\n a 2x2+2x2 DBS capable Wi-Fi chip.\n\n- The device must support the following methods in the Wi-Fi Vendor HAL:\n\n - `IWifiChip.createBridgedApIface()`\n - `IWifiChip.removeIfaceInstanceFromBridgedApIface()`\n - `IWifiApIface.resetToFactoryMacAddress()`\n - `IWifiApIface.getBridgedInstances()`\n\nImplementation\n--------------\n\nTo implement Wi-Fi AP/AP concurrency, do the following:\n\n1. Enable at least one of the following functions (disabled by default) using\n [runtime resource overlays](/docs/core/architecture/rros):\n\n - `config_wifiBridgedSoftApSupported`: Supports multiple APs that are bridged together.\n - `config_wifiStaWithBridgedSoftApConcurrencySupported`: Supports concurrency of a station (STA) and multiple bridged APs.\n2. For devices using the AIDL Wi-Fi HAL or HIDL Wi-Fi HAL 1.6,\n define `AP_BRIDGED` in the Wi-Fi HAL interface combination. For more\n details, see\n [Wi-Fi multi-interface concurrency](/docs/core/connect/wifi-hal#wi-fi_multi-interface_concurrency).\n\n3. Configure the bridged soft AP configuration by calling one of the following\n methods:\n\n - [`SoftApConfiguration.Builder#setBands`](https://cs.android.com/android/platform/superproject/+/android-latest-release:packages/modules/Wifi/framework/java/android/net/wifi/SoftApConfiguration.java?q=%22Builder%20setBands%22)\n - [`SoftApConfiguration.Builder#setChannels`](https://cs.android.com/android/platform/superproject/+/android-latest-release:packages/modules/Wifi/framework/java/android/net/wifi/SoftApConfiguration.java?q=%22Builder%20setChannels%22)\n4. Register a callback to obtain the device capabilities using\n `WifiManager#registerSoftApCallback`. The `SoftApCallback` callback\n provides the following methods for a bridged soft AP configuration:\n\n - [`SoftApCallback#onInfoChanged`](https://cs.android.com/android/platform/superproject/+/android-latest-release:packages/modules/Wifi/framework/java/android/net/wifi/WifiManager.java?q=%22void%20onInfoChanged%28@NonNull%20List%22): Provides information about the running soft AP instances.\n - [`SoftApCallback#onConnectedClientsChanged`](https://cs.android.com/android/platform/superproject/+/android-latest-release:packages/modules/Wifi/framework/java/android/net/wifi/WifiManager.java?q=%22onConnectedClientsChanged%28@NonNull%20SoftApInfo%22): Provides a list of connected clients for a soft AP instance.\n\nCustomize the inactivity period\n-------------------------------\n\nTo customize the length of the inactivity period, configure the following\noverlay, which is found\nin [`packages/modules/Wifi/service/ServiceWifiResources/res/values/config.xml`](https://cs.android.com/android/platform/superproject/+/android-latest-release:packages/modules/Wifi/service/ServiceWifiResources/res/values/config.xml):\n\n- `config_wifiFrameworkSoftApShutDownIdleInstanceInBridgedModeTimeoutMillisecond`:\n The default shutdown timeout interval. Only valid if\n `SoftApConfiguration#setBridgedModeOpportunisticShutdownEnabled` is enabled.\n\n- (Available from 13)\n `config_wifiFrameworkSoftApDisableBridgedModeShutdownIdleInstanceWhenCharging`:\n Indicates whether to disable the inactivity shutdown timer when charging."]]